<!-- $XConsortium: CreTeA.sgm /main/8 1996/09/08 20:36:54 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN181.rsml.1">
<RefMeta>
<RefEntryTitle>XmCreateTemplateDialog</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmCreateTemplateDialog</Function></RefName>
<RefPurpose>A MessageBox TemplateDialog convenience
creation function
<IndexTerm>
<Primary>XmCreateTemplateDialog</Primary>
</IndexTerm><IndexTerm>
<Primary>create functions</Primary>
<Secondary>XmCreateTemplateDialog</Secondary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- -->
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<!-- -->
<!-- **-->
<!-- **-->
<!-- **  (c) Copyright 1989, 1990, 1992 by Open Software Foundation, Inc.-->
<!-- **      All Rights Reserved.-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988, 1989, by Hewlett-Packard Company-->
<!-- **-->
<!-- **  (c) Copyright 1987, 1988 by Digital Equipment Corporation,-->
<!-- **      Maynard, MA.  All Rights Reserved.-->
<!-- **-->
<!-- **-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/MessageB.h>
</FuncSynopsisInfo>
<FuncDef>Widget <Function>XmCreateTemplateDialog</Function></FuncDef>
<!--<ParamDef><Replaceable>parent, name, arglist, argcount</Replaceable></ParamDef>-->
<ParamDef>Widget <Parameter>parent</Parameter></ParamDef>
<ParamDef>String <Parameter>name</Parameter></ParamDef>
<ParamDef>ArgList <Parameter>arglist</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>argcount</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmCreateTemplateDialog</Function> is a convenience creation function
that creates a DialogShell and an unmanaged MessageBox child of
the DialogShell. The MessageBox widget's <SystemItem Class="Resource">XmNdialogType</SystemItem> resource
is set to <SystemItem Class="Constant">XmDIALOG_TEMPLATE</SystemItem>. By default, the TemplateDialog
widget contains only the separator child. You can build
a customized dialog by adding children to the TemplateDialog.
</Para>
<Para>You can create
the standard MessageBox pushbuttons, <Literal>Cancel</Literal>, <Literal>Help</Literal>,
and <Symbol Role="Define">OK</Symbol>, by specifying the associated callback
and label string resources. Setting <SystemItem Class="Resource">XmNsymbolPixmap</SystemItem>
or <SystemItem Class="Resource">XmNmessageString</SystemItem> creates a symbol or message label.
</Para>
<Para>Use <Function>XtManageChild</Function> to pop up the TemplateDialog (passing the
MessageBox as the widget parameter); use <Function>XtUnmanageChild</Function> to
pop it down.
</Para>
<Para><Function>XmCreateTemplateDialog</Function> forces the value of the Shell resource
<SystemItem Class="Resource">XmNallowShellResize</SystemItem> to True.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">parent</Symbol></Term>
<ListItem>
<Para>Specifies the parent widget ID
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">name</Symbol></Term>
<ListItem>
<Para>Specifies the name of the created widget
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">arglist</Symbol></Term>
<ListItem>
<Para>Specifies the argument list
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">argcount</Symbol></Term>
<ListItem>
<Para>Specifies the number of attribute/value pairs in the argument
list (<Symbol Role="Variable">arglist</Symbol>)
</Para>
</ListItem>
</VarListEntry>
</VariableList>
<Para>For a complete definition of MessageBox and its associated resources,
see &cdeman.XmMessageBox;.
</Para>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>Returns the MessageBox widget ID.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmMessageBox;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
