- center a dialog box over a widget.
void XmtDialogPosition(Widget dialog, Widget
- The dialog shell widget to be centered.
- The ``reference widget'' over which dialog is to be centered.
sets the XtNx
so that when it is popped up it will appear centered over the
. If centering dialog
would cause part
of that widget to be off the edge of the screen, then the position is adjusted
so that all of dialog
Motif dialog boxes are automatically centered over their ancestor shell widget,
so you rarely will need to use this function. It is useful when a single
dialog box will be popped up over more than one application window.