GEOS SDK TechDocs
|
|
2 GenInteraction Instance Data
|
2.2 Standard Interactions (Menus)
GII_visibility, MSG_GEN_INTERACTION_GET_VISIBILITY, MSG_GEN_INTERACTION_SET_VISIBILITY
The GII
_visibility
instance field describes in what manner the user interface will display the Interaction. This is important for GenInteractions because of the wide variety of ways they may appear within an application. In most cases, this attribute will not directly affect the functionality of the children of the Interaction but only the visual implementation and specific UI activations of the objects.
Certain
GII_types
(see below) may only be meaningful under certain GII_
visibility
types, however. For example, GIT_NOTIFICATION, GIT_AFFIRMATION, and GIT_MULTIPLE_RESPONSE gain most of their significant functionality within dialog boxes (visibility GIV_DIALOG). In these cases the visibility will affect the functionality of the Interaction.
Each of the following visibilities is an enumeration of type
GenInteractionVisibility
; therefore, you may select one and only one of the following types for your Interaction. By default, a GenInteraction is GIV_SUB_GROUP.
You may also retrieve or set the visibility of any Interaction at run-time. To retrieve the
GenInteractionVisibility
stored in
GII_visibility
, send the Interaction a
MSG_GEN_INTERACTION_GET_VISIBILITY
. You can set the visibility of any Interaction by sending it a
MSG_GEN_INTERACTION_SET_VISIBILITY
. Make sure that any Interaction you set the visibility for is not currently GS_USABLE or an error will result.
byte MSG_GEN_INTERACTION_GET_VISIBILITY();
This message retrieves the current
GenInteractionVisibility
stored in the
GII_visibility
instance field of an Interaction.
Source: Unrestricted.
Destination: Any GenInteraction object.
Parameters: None.
Return:
GenInteractionVisibility
of the Interaction object.
Interception: Generally not intercepted.
void MSG_GEN_INTERACTION_SET_VISIBILITY(
byte visibility);
This message sets the
GII_visibility
instance data for the GenInteraction. This message must pass a valid
GenInteractionVisibility
type to the Interaction object. The Interaction must not be GS_USABLE when receiving this message. The new visibility will take effect when the Interaction is next made GS_USABLE.
Source: Unrestricted.
Destination: Any non-usable GenInteraction object.
Parameters:
visibility
GenInteractionVisibility
for interaction.
Return: Nothing.
Interception: Generally not intercepted.
Warnings: Make sure that the object sent this message is not GS_USABLE.
GEOS SDK TechDocs
|
|
2 GenInteraction Instance Data
|
2.2 Standard Interactions (Menus)