SetFlags
SetFlags(windowID, childID), SetFlags(windowID), SetFlags(, childID), SetFlags
parameters: Identifier of a Windows and a child Windows object
Stack | Position | Description |
---|---|---|
Stack(In) | Top | Flags |
Stack(Out) | Top | - |
Although flags are generally specified when defining a window object, some window objects can be changed at runtime. There are constants for the flag values(flag overview). SetFlags activates the flags found on the stack. All other flags of the window object remain unchanged.
windowID passed with stack: SetLimit(STACK, oboxID)
Stack | Position | Description |
---|---|---|
Stack(In) | Top | Flags |
Top 1 | windowID | |
Stack(Out) | Top | - |
Which flags can be modified for which window objects:
Numeric | all NF_-Flags (Numerical Flags) |
Date, DiffuseDate | all DF_-Flags (Date - Flags) |
DigitalTime, DigitalTimer | all TF_-Flags (Time - Flags) |
Unit | all UF_-Flags (Unit - Flags) |
Enumeration | the filter mask (for transformation table) |
With ResetFlags a flag can be deleted. With the function IsFlags it can be checked whether a certain flag has been set/deleted for a window object.
Some widget/flag combinations require the widget to be redrawn(Refresh) or refilled(ClearObox & FillObox) so that the changed flags will affect the behaviour and appearance of the widget. The formatting instructions of a widget do not need to be reassigned.
LIST_ORIGIN LIST_INVALID + SetFlags(SelectWin, ListBox)
See also