GenClass: 13 Window Positions and Sizes

Up: GEOS SDK TechDocs | Up | Prev: 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.

MSG_GEN_SET_WIN_POSITION
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.

xPosSpec
The new x coordinates of the window.
yPosSpec
The new y coordinates of the window.

Return: Nothing.

Interception: Generally not intercepted.

MSG_GEN_SET_WIN_SIZE
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.

xSizeSpec
The new x coordinates of the window.
ySizeSpec
The new y coordinates of the window.

Return: Nothing.

Interception: Generally not intercepted.

MSG_GEN_SET_WIN_CONSTRAIN
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 .

constrainType
WinConstrainType .
WCT_NONE
WCT_KEEP_PARTIALLY_VISIBLE
WCT_KEEP_VISIBLE
WCT_KEEP_VISIBLE_WITH_MARGIN

Interception: Generally not intercepted.


Up: GEOS SDK TechDocs | Up | Prev: 12 Navigation Methods