GEOS SDK TechDocs
|
|
12 Navigation Methods
MSG_GEN_SET_WIN_POSITION, MSG_GEN_SET_WIN_SIZE, MSG_GEN_SET_WIN_CONSTRAIN
These messages allow window objects to override their default window behavior. Sending these messages may cause the objects involved to be specifically rebuilt.
You may also override the default constraints on a windowed object. To do so, send the windowed object MSG_GEN_SET_WIN_CONSTRAIN, passing it the
WinConstrainType
to set for the window.
void MSG_GEN_SET_WIN_POSITION(
word modeAndType,
SpecWinSizeSpec xPosSpec,
SpecWinSizeSpec yPosSpec);
This message sets a window's position. The message must be passed a
WinPositionType
along with two x and y coordinates passed in
SpecWinSizeSpec
structures. The window's upper left corner will be drawn at the supplied coordinates.
Source: Unrestricted.
Destination: Any GS_USABLE GenDisplay, GenPrimary, or independently-displayable GenInteraction.
Parameters:
modeAndType
VisUpdateMode
and
WinPositionType
. This message expects a
VisUpdateMode
and
WinPositionType
passed in the parameter
modeAndType
. Use the macro GET_MM_AND_TYPE to combine these two values into one word.
Return: Nothing.
Interception: Generally not intercepted.
void MSG_GEN_SET_WIN_SIZE(
word modeAndType,
SpecWinSizeSpec xSizeSpec,
SpecWinsizeSpec ySizeSpec);
This message sets a window's size. The message must be passed a
WinPositionType
along with two x and y coordinates passed in
SpecWinSizeSpec
structures.
Source: Unrestricted.
Destination: Any GS_USABLE GenDisplay, GenPrimary, or independently-displayable GenInteraction.
Parameters:
modeAndType
VisUpdateMode
and
WinSizeType
. Use the macro GET_MM_AND_TYPE to combine these two values into one word.
Return: Nothing.
Interception: Generally not intercepted.
void MSG_GEN_SET_WIN_CONSTRAIN(
VisUpdateMode updateMode,
byte constrainType);
This message changes a window's constrain type to the passed
WindowConstrainType
.
Source: Unrestricted.
Destination: Any GS_USABLE GenPrimary or GenInteraction object.
Parameters:
updateMode
VisUpdateMode
.
WinConstrainType
.Interception: Generally not intercepted.
GEOS SDK TechDocs
|
|
12 Navigation Methods