GEOS SDK TechDocs
|
|
7.2 Generic Upward Queries
|
8 Visual Refreshing
MSG_GEN_CALL_APPLICATION, MSG_GEN_SEND_TO_PROCESS, MSG_GEN_CALL_SYSTEM,MSG_GEN_OUTPUT_ACTION MSG_GEN_QUERY_NEED_TO_BE_ON_ACTIVE_LIST
Besides the Generic Upward Queries,
GenClass
also contains several object-specific queries. These messages behave in the same manner as the GUP messages except that there is no need to set up a classed event. The object-specific upward query automatically sets up the class to send the message to.
MSG_GEN_CALL_APPLICATION
sends a message up the generic tree to the GenApplication object. This message allows return values and should be cast to whatever return values are expected of the passed message.
MSG_GEN_SEND_TO_PROCESS
sends a message to the process object associated with this object. Because this message may cross threads, no return values are allowed.
MSG_GEN_CALL_SYSTEM
sends a message up the generic tree to the GenSystem object. This message allows return values and should be cast into whatever return values are expected of the passed message.
MSG_GEN_QUERY_NEED_TO_BE_ON_ACTIVE_LIST
void MSG_GEN_CALL_APPLICATION(
EventHandle event);
This message calls the GenApplication object associated with the recipient. This message allows return values and should be cast to whatever return values are expected of the passed message.
Source: Unrestricted.
Destination: Any generic object.
Parameters: event The classed event to deliver to the object's GenApplication object.
Return: The return values of the classed event (cast to the proper type).
Interception: Generally not intercepted. Custom gadgets may handle to supplement or supersede default functionality.
void MSG_GEN_SEND_TO_PROCESS(
EventHandle event);
This message sends the event to the Process object of your application. Because the message may cross threads, return values are not allowed.
Source: Unrestricted.
Destination: Any generic object.
Parameters: event The classed event to deliver to the object's GenProcess object.
Interception: Generally not intercepted. Custom gadgets may handle to supplement or supersede default functionality.
void MSG_GEN_CALL_SYSTEM(
EventHandle event);
This message calls the GenSystem object (the root object) associated with your application and sends the event. If you expect return values, make sure to cast them into the proper variable type.
Source: Unrestricted.
Destination: Any generic object.
Parameters:
event
The classed event to deliver to the object's GenSystem object.
Return: The return values of the classed event (cast to the proper type).
Interception: Generally not intercepted. Custom gadgets may handle to supplement or supersede default functionality.
MSG_GEN_OUTPUT_ACTION
voidMSG_GEN_OUTPUT_ACTION(EventHandle event, optr dest);
This message sends an event via the destination optr (if any) of the object sent the message. The default handler (which is rarely subclassed) also scans the vardata looking for an
ATTR_GEN_DESTINATION_CLASS
and records that class in a classed event.
This message is usually sent at a low level and dispatches a message via the destination optr of the object. You may intercept
MSG_GEN_OUTPUT_ACTION
if you wish knowledge of when an object is being activated (although you may wish to intercept
MSG_GEN_ACTIVATE
in those cases). If you do send this message yourself, you must either pass a destination optr or leave it null, depending on the object being activated.
Source: Normally sent by an object to itself.
Destination: Normally sent by an object to itself.
Parameters: event A classed event.
TravelOption
.Interception: Generally not intercepted.
Boolean MSG_GEN_QUERY_NEED_TO_BE_ON_ACTIVE_LIST();
This message queries whether an object still needs to be on an active list. The active list mechanism sends this message if a mechanism no longer needs an object to remain on the active list; it checks whether any other mechanism also needs the object to be on the active list also. Windowed specific UI objects, for example, will return true if ATTR_INITIATE_ON_STARTUP is present on the object, because this optional attribute requires the object to be on the active list.
Source: Unrestricted, though it is generally called on itself. Specifically, if an object no longer needs to remain on the active list for a particular reason, this message should be called on the object to see if it should remain on the active list for any other reason. If so, the caller should not remove the object from the active list. The only exception to this would be if the object were being destroyed, in which the object should be removed in any case.
Destination: Any generic object.
Return: true if the object needs to remain on the active list for some other reason.
Interception: Object classes which add the object to the active list must intercept this message and return true if the class desires the object to remain on the active list. If the message is intercepted and this is not the case, it should be sent to the superclass for handling.
GEOS SDK TechDocs
|
|
7.2 Generic Upward Queries
|
8 Visual Refreshing