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

Putting up a "please wait" dialog.



Q. What routines do I use to put up and take down a notice saying
   "please wait"?

A. I assume that in this case you don't want a thread-blocking routine
   such as UserDoDialog(). (I.e. you aren't requesting a response from
   the user, such as through an 'OK' trigger.)

   You can create a GenInteraction (set GII_visibility = GIV_DIALOG and
   GII_attrs = @default | GIA_NOT_USER_INITIATABLE) with a GenGlyph
   child, whose GI_visMoniker is "please wait", and make it a child
   of the GenApplication.  To bring it on-screen, send
   MSG_GEN_INTERACTION_INITIATE to the GenInteraction.  To take it down,
   you can send IC_DISMISS through MSG_GEN_GUP_INTERACTION_COMMAND.

   You probably also want to make the dialog modal.