Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Contact Us
Online Help
Domain Status
Man Pages

Virtual Servers

Topology Map

Server Agreement
Year 2038

USA Flag



Man Pages
XmtBuildDialog(3) FreeBSD Library Functions Manual XmtBuildDialog(3)

XmtBuildDialog(), XmtBuildQueryDialog() - create a dialog shell and its descendants.

#include <Xmt/Create.h>
Widget XmtBuildDialog(Widget parent, String dialog_name, XtResourceList resources, Cardinal num_resources)
Widget XmtBuildQueryDialog(Widget parent, String dialog_name, XtResourceList resources, Cardinal num_resources,
{ String child_name, Widget *child_address, }

The parent of the dialog shell to be created.
The name of the dialog shell to be created.
An optional resource list that gives names, types and offsets for each of the data items that will be displayed or input through the dialog box.
The number of elements in the resources array.
The name of a widget to be returned. May be repeated any number of times in a NULL-terminated variable-length argument list.
The address at which the widget specified by child_name is to be stored. May be repeated any number of times in a NULL-terminated variable length argument list.
The child of the newly created dialog shell; a grandchild of parent.

XmtBuildDialog() and XmtBuildQueryDialog() create an XmDialogShell widget with the specified name and parent, and then read the xmtChildren resource for that widget database and use it to recursively create all the descendants of the dialog shell, in the same way that XmtCreateChildren() and
XmtCreateQueryChildren() do.
Like XmtCreateQueryChildren(), XmtBuildQueryDialog() will return pointers to the widgets named in its NULL-terminated variable-length argument list.
XmtCreateChildren() and related widget creation functions parse a widget specification grammar described in Chapter 12, Automatic Widget Creation. XmtBuildDialog() and XmtBuildQueryDialog() extend this grammar, to allow the name of a data value to be associated with any widget in the dialog. The resources argument is an array of XtResource structures that defines a data type, size, and offset for each of these named data values. These named data values are used by the Xmt automatic dialog management facilities described in Chapter 31, Custom Dialogs and Automatic Dialog Management.

Note that these functions do not return the XmDialogShell widget they create, but rather the child of that widget. (Recall that shell widgets can only have a single child.) You can pop up and pop down the dialog shell by managing and unmanaging its child. If you are using the automatic dialog management facilities of Chapter 29, you can also use convenience functions like XmtDialogDo() and XmtDialogDoSync().

Chapter 11, Automatic Widget Creation,
Chapter 29, Custom Dialogs and Automatic Dialog Management, XmtBuildToplevel(), XmtCreateChildren(), XmtDialogDo().
Motif Tools Xmt

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.