GEOS SDK TechDocs
|
|
2 Module Information Routine
|
4 Object Class Reference
If you're going to create a subclass for use in a Preferences module, the following messages will be of special interest, as they signal that the user is carrying out certain important actions.
MSG_META_LOAD_OPTIONS
by loading a value from the appropriate place in the .INI file. This place is determined by the object's ATTR_GEN_INIT_FILE_KEY field. If the object has an ATTR_GEN_INIT_FILE_CATEGORY field, that category will be used; otherwise the default handler will look up the Generic tree for an object with a ATTR_GEN_INIT_FILE_CATEGORY field defined and will use the value stored there.
MSG_META_LOAD_OPTIONS
will be sent to the top level of the module's UI tree. This message should be propagated down the tree to reach all objects which should read their values from the .INI file. This is why it is suggested that you use PrefInteractions in place of GenInteractions if any Pref- objects will be underneath. If you create a new sort of object which should relay this message to other objects, be sure to do so.
MSG_META_SAVE_OPTIONS
MSG_META_SAVE_OPTIONS
by saving a value to the appropriate place in the .INI file. This place is determined by the object's ATTR_GEN_INIT_FILE_KEY field. If the object has an ATTR_GEN_INIT_FILE_CATEGORY field, that category will be used; otherwise the default handler will look up the Generic tree for an object with a ATTR_GEN_INIT_FILE_CATEGORY field defined and will use the value stored there.
MSG_META_SAVE_OPTIONS
will be sent to the top level of the module's UI tree. This message should be propagated down the tree to reach all objects which should write their values to the .INI file. This is why it is suggested that you use PrefInteractions in place of GenInteractions if any Pref- objects will be underneath. If you create a new sort of object which should relay this message to other objects, be sure to do so.
MSG_META_LOAD_OPTIONS
) and should intercept
MSG_GEN_RESET
to replace its value with the "original" value.
MSG_GEN_SAVE_OPTIONS
MSG_META_SAVE_OPTIONS
.If you are interested in detecting certain user actions, the following list may prove useful:
MSG_PREF_INIT
. After receiving
MSG_PREF_INIT
, each object will receive a
MSG_META_LOAD_OPTIONS
.
MSG_GEN_APPLY
when the user activates the Apply trigger. The Pref dialog responds to this message by sending itself a
MSG_META_SAVE_OPTIONS
, which it will then pass on to its children.
MSG_GEN_RESET
.
GEOS SDK TechDocs
|
|
2 Module Information Routine
|
4 Object Class Reference