// Creating a popup dialog
Widget dialog = XmCreateMessageDialog( parent, "Dialog", 0, 0 ); //
parent is initialized earlier in the code
XtManageChild( dialog );
XtPopup( XtParent( dialog ), XtGrabNone );
Why do we need the XtPopup call? XtManageChild maps the dialog, anyway.
In fact, if one comments the last line out, behavior does not change (at
least, visibly). I surfed the Net, but no one seems to care about it.
Thank you in advance,
Sergei
You do not need XtPopup with Motif dialogs. Motif takes care of that for you.
--
Ken Lee, http://www.rahul.net/kenton/