GenClass: 6.3 Vardata: Dynamically Managing VarData

Up: GEOS SDK TechDocs | Up | Prev: 6.2 Hints to the Specific UI | Next: 7 Special Message Passing
MSG_META_ADD_VAR_DATA, MSG_META_DELETE_VAR_DATA, MSG_GEN_ADD_GEOMETRY_HINT, MSG_GEN_REMOVE_GEOMETRY_HINT

You must use special kernel routines and MetaClass messages to access, add, or remove entries within an object's instance fields.

In addition to these routines and messages, two messages specific to GenClass allow you to add or remove hints dynamically: MSG_GEN_ADD_GEOMETRY_HINT and MSG_GEN_REMOVE_GEOMETRY_HINT . These messages allow geometry and window positioning hints to be added or removed while the object is on-screen. Sending a GS_USABLE object one of these messages with a valid geometry hint forces that object to redraw itself according to the new geometry.

MSG_GEN_ADD_GEOMETRY_HINT

void	MSG_GEN_ADD_GEOMETRY_HINT(
        word		hint,
        word		hintArgument,
        VisUpdateMode		updateMode);

This message adds a geometry hint to a generic object. The object may be GS_USABLE at the time, in which case the object is redrawn according to the new geometry configuration.

Source: Unrestricted.

Destination: Any generic object.

Parameters: hint The hint to add to the object's instance data

hintArgument
A word of data for any hints that require an argument.
updateMode
VisUpdateMode to determine when the object will be redrawn.

Interception: Generally not intercepted.

MSG_GEN_REMOVE_GEOMETRY_HINT

void	MSG_GEN_REMOVE_GEOMETRY_HINT(
        word		hint,
        VisUpdateMode		updateMode);

This message removes a geometry hint from an object's instance data. The object may be GS_USABLE at the time, in which case it will be redrawn according to the new geometry configuration.

Source: Unrestricted.

Destination: Any generic object.

Parameters: hint The hint to remove.

updateMode
VisUpdateMode to determine when the object will be redrawn.

Interception: Generally not intercepted.


Up: GEOS SDK TechDocs | Up | Prev: 6.2 Hints to the Specific UI | Next: 7 Special Message Passing