'\" t .\" AddToPos.sgm /main/9 1996/09/08 20:24:39 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 "XmAddToPostFromList" 3 .SH "NAME" \fBXmAddToPostFromList\fP \(em a RowColumn function that makes a menu accessible from more than one widget "XmAddToPostFromList" "RowColumn functions" "XmAddToPostFromList" .SH "SYNOPSIS" .PP .nf #include .sp \n(PDu \fBvoid \fBXmAddToPostFromList\fP\fR( \fBWidget \fBmenu\fR\fR, \fBWidget \fBpost_from_widget\fR\fR); .fi .SH "DESCRIPTION" .PP \fBXmAddToPostFromList\fP makes a menu accessible from more than one widget\&. After a menu is once created, this function may be used to make that menu accessible from a second widget\&. The process may be repeated indefinitely\&. In other words, where an application would use \fBXmCreatePopupMenu\fP or \fBXmCreatePulldownMenu\fP or their equivalent to create a new menu identical to one that already exists, it can use this function to reuse that earlier menu\&. .PP If \fImenu\fP refers to a Popup menu, then the \fIpost_from_widget\fP widget can now pop up the specified menu\&. The actual posting of the menu occurs as it always does, either through an event handler, or the automatic popup menu support (see the \fBXmRowColumn\fP(3) reference page)\&. .PP If \fImenu\fP refers to a Pulldown menu, its ID is placed in the \fBXmNsubMenuId\fP resource of the specified \fIpost_from_widget\fP\&. In this case, the \fIpost_from_widget\fP widget must be either a CascadeButton or a CascadeButtonGadget\&. .PP Note that this function manipulates the internal structures themselves, not a copy of them\&. .IP "\fImenu\fP" 10 Specifies the ID of the RowColumn widget containing the menu (Popup or Pulldown) to be made accessible from the widget\&. .IP "\fIpost_from_widget\fP" 10 Specifies the widget ID of the widget which will now be able to post the menu specified by \fImenu\fP\&. .PP For a complete definition of RowColumn and its associated resources, see \fBXmRowColumn\fP(3)\&. .SH "RELATED" .PP \fBXmGetPostedFromWidget\fP(3), \fBXmRemoveFromPostFromList\fP(3), and \fBXmRowColumn\fP(3)\&. .\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:17