Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.13 KB

File metadata and controls

43 lines (34 loc) · 1.13 KB

GetIconPushButtonState

Description

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)

Parameters

Name Type Description
nDialogID LONGINT
nComponentID LONGINT
bPressed BOOLEAN

Remarks

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);

Version

Availability: from VectorWorks13.0

Category