Retrieves the state of the specified Layout Manager icon push button (pressed or not pressed).
FUNCTION GetIconPushButtonState(
nDialogID : LONGINT;
nComponentID : LONGINT;
VAR bPressed : BOOLEAN): BOOLEAN;def vs.GetIconPushButtonState(nDialogID, nComponentID):
return (BOOLEAN, bPressed)| Name | Type | Description |
|---|---|---|
| nDialogID | LONGINT | |
| nComponentID | LONGINT | |
| bPressed | BOOLEAN |
Julian [2013/03/07]
As of Vw 2013 SP2 (177995), this call works differently on Mac and Windows due
to a bug. Here is an example of how it needs to be used on both platforms.
The example toggles the state of the icon push button:
'''MAC''':
Flag := GetIconPushButtonState(DialogID, item, Flag2);
Flag := SetIconPushButtonState(DialogID, item, Flag2);
'''WIN''':
Flag := GetIconPushButtonState(DialogID, item, Flag2);
Flag := SetIconPushButtonState(DialogID, item, NOT Flag2);
Availability: from VectorWorks13.0