Blob Blame History Raw
'\" t
...\" CreSiC.sgm /main/7 1996/08/30 14:54:35 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmCreateSimpleOptionMenu" "library call"
.SH "NAME"
\fBXmCreateSimpleOptionMenu\fP \(em A RowColumn widget convenience creation function
.iX "XmCreateSimpleOptionMenu"
.iX "creation functions" "XmCreateSimpleOptionMenu"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/RowColumn\&.h>
\fBWidget \fBXmCreateSimpleOptionMenu\fP\fR(
\fBWidget \fBparent\fR\fR,
\fBString \fBname\fR\fR,
\fBArgList \fBarglist\fR\fR,
\fBCardinal \fBargcount\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmCreateSimpleOptionMenu\fP creates an instance of a RowColumn widget
of type \fBXmMENU_OPTION\fP and returns the associated widget ID\&.
.PP
This routine creates an OptionMenu and its submenu containing
PushButtonGadget or CascadeButtonGadget children\&.
The name of each button is \fBbutton_\fP\fIn\fP, where \fIn\fP is an integer
from 0 (zero) to the number of buttons in the menu minus 1\&.
The name of each separator is \fBseparator_\fP\fIn\fP, where \fIn\fP is an integer
from 0 (zero) to the number of separators in the menu minus 1\&.
Buttons and separators are named and created in the order they
are specified in the RowColumn simple menu creation resources supplied
in the argument list\&.
.IP "\fIparent\fP" 10
Specifies the parent widget ID
.IP "\fIname\fP" 10
Specifies the name of the created widget
.IP "\fIarglist\fP" 10
Specifies the argument list
.IP "\fIargcount\fP" 10
Specifies the number of attribute/value pairs in the argument list
(\fIarglist\fP)
.PP
The user can specify resources in a resource file for the automatically
created widgets and gadgets of an OptionMenu\&.
These widgets (or gadgets) and the associated
OptionMenu areas are
.IP "Option Menu Label Gadget" 10
\fBOptionLabel\fP
.IP "Option Menu Cascade Button" 10
\fBOptionButton\fP
.PP
A number of resources exist specifically for use with this and
other simple menu creation routines\&.
The only button types allowed in the \fBXmNbuttonType\fP resource are
\fBXmPUSHBUTTON\fP, \fBXmCASCADEBUTTON\fP, \fBXmSEPARATOR\fP, and
\fBXmDOUBLE_SEPARATOR\fP\&.
For a complete definition of RowColumn and its associated resources, see
\fBXmRowColumn\fP(3)\&.
.SH "RETURN"
.PP
Returns the RowColumn widget ID\&.
.SH "RELATED"
.PP
\fBXmCreateOptionMenu\fP(3),
\fBXmCreateRowColumn\fP(3),
\fBXmRowColumn\fP(3), and
\fBXmVaCreateSimpleOptionMenu\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:21