long GetFlags(void)
void SetFlags(long set)
void SetFlagsIncluding(long set)
void SetFlagsExcluding(long set)
Set/Get flags for the button from the following.
Enumeration values are given for clarity; they are subject to change.
| WDS_BUTTON_FLAGS_NONE 0 |
No special flags.
|
| WDS_BUTTON_FLAGS_TOGGLE 1 |
Instead of a simple press-release button,
the button activates on the first press and, potentially,
deactivates on the second press.
|
| WDS_BUTTON_FLAGS_EXCLUSIVE 2 |
When activated, the button registers with the shallowest ancestral scope
in a way that deactivates any exclusive buttons that registered with
the same scope.
This is useful for radio buttons.
|
| WDS_BUTTON_FLAGS_UNTAKE_ONLY 4 |
User can not directly deactivate a toggled button, but only indirectly using
WDS_BUTTON_FLAGS_EXCLUSIVE flag described above.
|
| WDS_BUTTON_FLAGS_TOGGLE_AUTOSIZE 8 |
Autosize the widget using specific rules generally applicable to
toggle and radio buttons.
The height is the maximum of the string and annotation heights.
The width is the sum of the annotation string width,
prefered widget height, and annotation width.
This implies a square widget box with an offset to
the annotation specified by the annotation width.
Note that this is NOT the standard interpretation of the annotation size.
|
| WDS_STATE_0 | Released |
| WDS_STATE_1 | Pressed |