Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
Except as contained in this notice, the name of the X Consortium shall
not be used in advertising or otherwise to promote the sale, use or
other dealings in this Software without prior written authorization
from the X Consortium.
.\\$1D \\$2 \\$1 .if \\n(VS>=40 .vs \\n(VSu..
.if \\n(VS<=39 .vs \\n(VSp
..0 .nr BD 0
.KS .TA .5i 3i
...KE
.. .. .KS
.D
choose appropriate monospace font
the imagen conditional, 480,
may be changed to L if LB is too
heavy for your eyes...
.. .R .. .. .. .TB\\*(NO .R .. . \" Note End -- doug kraft 3/85
0 .. .ny0
XtPopdown __libmansuffix__ __xorgversion__ "XT FUNCTIONS"NAMEXtPopdown, XtCallbackPopdown - unmap a pop-upSYNTAXvoid XtPopdown(Widget popup_shell);
void XtCallbackPopdown(Widget w, XtPointer client_data, XtPointer call_data);
void MenuPopdown(String shell_name);
ARGUMENTScall_data 1iSpecifies the callback data, which is not used by this procedure.client_data 1iSpecifies a pointer to the .ZN XtPopdownID structure.popup_shell 1iSpecifies the widget shell\*(Ps.shell_name 1iSpecifies the name of the widget shell to pop \*(Sn.w 1iSpecifies the widget.DESCRIPTIONThe .ZN XtPopdown function performs the following:\(bu 5Calls .ZN XtCheckSubclass .ZN XtCheckSubclass(popup_shell, popupShellWidgetClass)
to ensure popup_shell is a subclass of .ZN Shell .\(bu 5Checks that popup_shell is currently popped_up; otherwise, it generates an error.\(bu 5Unmaps popup_shell's window.\(bu 5If popup_shell's grab_kind is either .ZN XtGrabNonexclusive or .ZN XtGrabExclusive , it calls .ZN XtRemoveGrab . .ZN XtRemoveGrab(popup_shell)\(bu 5Sets pop-up shell's popped_up field to .ZN False .\(bu 5Calls the callback procedures on the shell's popdown_callback list.The .ZN XtCallbackPopdown function casts the client data parameter to an .ZN XtPopdownID pointer:
.Ds 0 .TA .5i 3i typedef struct { Widget shell_widget; Widget enable_widget; } XtPopdownIDRec, *XtPopdownID; .De The shell_widget is the pop-up shell to pop down, and the enable_widget is the widget that was used to pop it up.
.ZN XtCallbackPopdown calls .ZN XtPopdown with the specified shell_widget and then calls .ZN XtSetSensitive to resensitize the enable_widget.
If a shell name is not given, .ZN MenuPopdown calls .ZN XtPopdown with the widget for which the translation is specified. If a shell_name is specified in the translation table, .ZN MenuPopdown tries to find the shell by looking up the widget tree starting at the parent of the widget in which it is invoked. If it finds a shell with the specified name in the pop-up children of that parent, it pops down the shell; otherwise, it moves up the parent chain as needed. If .ZN MenuPopdown gets to the application top-level shell widget and cannot find a matching shell, it generates an error.
"SEE ALSO"XtCreatePopupShell(3Xt), XtPopup(3Xt)\*(xT
\*(xL