Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtCreateMgd(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtCreateWidget(1)

XtManageChild(1)

XtManageChildren(1)

XtVaCreateManagedWidget(1)

 

NAME

XtCreateManagedWidget − create and manage a child widget. 

Synopsis

Widget XtCreateManagedWidget(name, widget_class, parent, args, num_args)

    String name;
    WidgetClass widget_class;
    Widget parent;
    ArgList args;
    Cardinal num_args;

Inputs

nameSpecifies the resource name for the created widget. 

widget_class
Specifies the widget class pointer for the created widget; must be rectObjClass or any subclass.

parentSpecifies the parent widget; must be of class Composite or any subclass thereof. 

argsSpecifies the argument list to override the resource defaults. 

num_argsSpecifies the number of arguments in the argument list. 

Returns

The newly created and managed child widget. 

Description

XtCreateManagedWidget() creates a widget by passing all of its arguments to XtCreateWidget(), and then calling XtManageChild() on the resulting widget.  It returns the created and managed widget. 

Usage

You can use XtVaCreateManagedWidget() to do the same thing, except that resource names and values are passed in a variable length argument list, rather than an ArgList.  If you are creating a number of children of an already realized parent, it is more efficient to create them and then manage them all in a single call to XtManageChildren(). 

See Also

XtCreateWidget(1), XtManageChild(1), XtManageChildren(1), XtVaCreateManagedWidget(1). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026