MenuPopup man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]



XtPopup(3Xt)		XT FUNCTIONS		XtPopup(3Xt)

NAME
       XtPopup, XtPopupSpringLoaded, XtCallbackNone, XtCallback-
       Nonexclusive, XtCallbackExclusive - map a pop-up

SYNTAX
       void XtPopup(popup_shell, grab_kind)
	     Widget popup_shell;
	     XtGrabKind grab_kind;

       void XtPopupSpringLoaded(popup_shell)
	     Widget popup_shell;

       void XtCallbackNone(w, client_data, call_data)
	     Widget w;
	     XtPointer client_data;
	     XtPointer call_data;

       void XtCallbackNonexclusive(w, client_data, call_data)
	     Widget w;
	     XtPointer client_data;
	     XtPointer call_data;

       void XtCallbackExclusive(w, client_data, call_data)
	     Widget w;
	     XtPointer client_data;
	     XtPointer call_data;

       void MenuPopup(shell_name)
	     String shell_name;

ARGUMENTS
       call_data Specifies the callback data, which is not used
		 by this procedure.

       client_data
		 Specifies the pop-up shell.

       grab_kind Specifies the way in which user events should be
		 constrained.

       popup_shell
		 Specifies the widget shell.

       w	 Specifies the widget.

DESCRIPTION
       The XtPopup function performs the following:

       o    Calls XtCheckSubclass to ensure popup_shell is a sub-
	    class of Shell.

       o    Generates an error if the shell's popped_up field is
	    already True.

X Version 11		Release 6.4				1

XtPopup(3Xt)		XT FUNCTIONS		XtPopup(3Xt)

       o    Calls the callback procedures on the shell's
	    popup_callback list.

       o    Sets the shell popped_up field to True, the shell
	    spring_loaded field to False, and the shell grab_kind
	    field from grab_kind.

       o    If the shell's create_popup_child field is non-NULL,
	    XtPopup calls it with popup_shell as the parameter.

       o    If grab_kind is either XtGrabNonexclusive or
	    XtGrabExclusive, it calls:

       XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), False)

       o    Calls XtRealizeWidget with popup_shell specified.

       o    Calls XMapWindow with popup_shell specified.

       The XtPopupSpringLoaded function performs exactly as
       XtPopup except that it sets the shell spring_loaded field
       to True and always calls XtAddGrab with exclusive True and
       spring_loaded True.

       The XtCallbackNone, XtCallbackNonexclusive, and
       XtCallbackExclusive functions call XtPopup with the shell
       specified by the client data argument and grab_kind set as
       the name specifies.  XtCallbackNone,
       XtCallbackNonexclusive, and XtCallbackExclusive specify
       XtGrabNone, XtGrabNonexclusive, and XtGrabExclusive,
       respectively.  Each function then sets the widget that
       executed the callback list to be insensitive by using
       XtSetSensitive.	Using these functions in callbacks is not
       required.  In particular, an application must provide cus-
       tomized code for callbacks that create pop-up shells
       dynamically or that must do more than desensitizing the
       button.

       MenuPopup is known to the translation manager, which must
       perform special actions for spring-loaded pop-ups.  Calls
       to MenuPopup in a translation specification are mapped
       into calls to a nonexported action procedure, and the
       translation manager fills in parameters based on the event
       specified on the left-hand side of a translation.

       If MenuPopup is invoked on ButtonPress (possibly with mod-
       ifiers), the translation manager pops up the shell with
       grab_kind set to XtGrabExclusive and spring_loaded set to
       True.  If MenuPopup is invoked on EnterWindow (possibly
       with modifiers), the translation manager pops up the shell
       with grab_kind set to XtGrabNonexclusive and spring_loaded
       set to False.  Otherwise, the translation manager gener-
       ates an error.  When the widget is popped up, the follow-
       ing actions occur:

X Version 11		Release 6.4				2

XtPopup(3Xt)		XT FUNCTIONS		XtPopup(3Xt)

       o    Calls XtCheckSubclass to ensure popup_shell is a sub-
	    class of Shell.

       o    Generates an error if the shell's popped_up field is
	    already True.

       o    Calls the callback procedures on the shell's
	    popup_callback list.

       o    Sets the shell popped_up field to True and the shell
	    grab_kind and spring_loaded fields appropriately.

       o    If the shell's create_popup_child field is non-NULL,
	    it is called with popup_shell as the parameter.

       o    Calls:

       XtAddGrab(popup_shell, (grab_kind == XtGrabExclusive), spring_loaded)

       o    Calls XtRealizeWidget with popup_shell specified.

       o    Calls XMapWindow with popup_shell specified.

       (Note that these actions are the same as those for
       XtPopup.)  MenuPopup tries to find the shell by searching
       the widget tree starting at the parent of the widget in
       which it is invoked.  If it finds a shell with the speci-
       fied name in the pop-up children of that parent, it pops
       up the shell with the appropriate parameters.  Otherwise,
       it moves up the parent chain as needed.	If MenuPopup gets
       to the application widget and cannot find a matching
       shell, it generates an error.

SEE ALSO
       XtCreatePopupShell(3Xt), XtPopdown(3Xt)
       X Toolkit Intrinsics - C Language Interface
       Xlib - C Language X Interface

X Version 11		Release 6.4				3

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net