Sets a mode bar button help text.
PROCEDURE SetModeButtonText(
modeName : STRING;
modeType : INTEGER);def vs.SetModeButtonText(modeName, modeType):
return None| Name | Type | Description |
|---|---|---|
| modeName | STRING | The name of the mode. |
| modeType | INTEGER | The type of the mode. |
BeginModeButtonsText;
SetModeButtonText( 'Mode1', 1 );
SetModeButtonText( 'Mode2', 0 );
EndModeButtonsText;BeginModeButtonsText;
SetModeButtonText( GetPluginString( kConstrLine ), 0 );
SetModeButtonText( GetPluginString( kUnconstrLine ), 0 );
EndModeButtonsText;
{ ---------------------------------}
kOnToolDoSetupEventID: BEGIN
AddButtonMode('VWMiscSmallImages/11016.png');
BeginModeButtonsText;
SetModeButtonText( GetPluginString( 6000 ), 2 );
EndModeButtonsText;
vstSetPtBehavior(kPolyPointTool);
vstSetModeHelpBase( -2322 );
END;
BeginModeButtonsText;
SetModeButtonText( GetPluginString( 3001 ), 0 );
SetModeButtonText( GetPluginString( 3002 ), 0 );
SetModeButtonText( GetPluginString( 3003 ), 0 );
SetModeButtonText( GetPluginString( 3004 ), 0 );
SetModeButtonText( GetPluginString( 3005 ), 0 );import vs
# Sets a mode bar button help text.
modeName = 'Example'
modeType = 0
vs.SetModeButtonText(modeName, modeType)VS Functions: BeginModeButtonsText | EndModeButtonsText
Availability: from Vectorworks 2013