[ Previous | Next | Contents | Glossary | Home | Search ]
Motif 2.1 Widget Writer's Guide


XmeCreateClassDialog

Creates a DialogShell containing a widget of the specified class

Format

#include <Xm/DrawP.h>
Widget XmeCreateClassDialogWidgetClass
widget_classWidget parentString
nameArgList argsCardinal
arg_count

DESCRIPTION

XmeCreateClassDialog is a convenience function that creates a DialogShell and then instantiates widget widget_class inside the DialogShell. XmeCreateClassDialog names the created DialogShell name_popup.

XmeCreateClassDialog forces the value of the XmNallowShellResize resource of Shell to True.

Call XtManageChild to pop up the created DialogShell. You should set the child argument of XtManageChild to the Widget returned by XmeCreateClassDialog. Call XtUnmanageChild to pop down the DialogShell.

XmeCreateClassDialog registers a destroyCallback for the created widget so that its DialogShell parent can be automatically destroyed.

widget_class
Specifies the widget class you want to instantiate as a child of the DialogShell. The specified widget_class does not have to hold the XmQTdialogShellSavvy trait although, typically, it will hold this trait.

parent
Specifies the parent widget of the DialogShell.

name
Specifies the name of the created widget.

args
Specifies the argument list ( args) passed to the DialogShell and the created widget.

arg_count
Specifies the number of attribute/value pairs in the argument list ( args).

RETURN

Returns the child widget of the DialogShell.

RELATED

XmCreateDialogShell(3) and XtCreateWidget(3).


[ Previous | Next | Contents | Glossary | Home | Search ]