Article # 183, added by Geoworks, historical record
| first | previous | index | next | last |

Make dismissed parent dialog automatically dismiss its child dialog




If a dialog that is a child of another dialog is initiated via
MSG_GEN_INTERACTION_INITIATE, rather than an associated trigger object,
the Geometry Manager does not automatically bring down the child dialog 
when its parent is dismissed.  To make the parent dialog automatically
bring down a (single) manually-initiated child dialog, add these hints
and flags to the parent dialog object:

  GI_attrs = @default | GA_NOTIFY_VISIBILITY;
  ATTR_GEN_VISIBILITY_DESTINATION = @TheChildDialog;
  ATTR_GEN_VISIBILITY_MESSAGE = MSG_GEN_GUP_INTERACTION_COMMAND;
  ATTR_GEN_VISIBILITY_DATA = ( (dword)IC_DISMISS << sizeof( word ) );
     /* Pass IC_DISMISS in proper word parameter
      * for MSG_GEN_GUP_INTERACTION_COMMAND.  */