XtCallbackNone(3)


HOME

XtPopup

NAME
SYNTAX
ARGUMENTS
DESCRIPTION
SEE ALSO

NAME

XtPopup, XtPopupSpringLoaded, XtCallbackNone, XtCallbackNonexclusive, XtCallbackExclusive − map a pop-up

SYNTAX

void XtPopup(Widget popup_shell, XtGrabKind grab_kind);

void XtPopupSpringLoaded(Widget popup_shell);

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

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

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

void MenuPopup(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:

Calls XtCheckSubclass to ensure popup_shell is a subclass of Shell.

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

Calls the callback procedures on the shell’s popup_callback list.

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

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

If grab_kind is either XtGrabNonexclusive or XtGrabExclusive, it calls:

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

Calls XtRealizeWidget with popup_shell specified.

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 customized 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 modifiers), 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 generates an error. When the widget is popped up, the following actions occur:

Calls XtCheckSubclass to ensure popup_shell is a subclass of Shell.

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

Calls the callback procedures on the shell’s popup_callback list.

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

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

Calls:

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

Calls XtRealizeWidget with popup_shell specified.

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 specified 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



More Linux Commands

manpages/copysignl.3.html
copysignl(3) - copy sign of a number - Linux manual page....
The copysign(), copysignf(), and copysignl() functions return a value whose absolute value matches that of x, but whose sign bit matches that of y. For example,

manpages/sa-learn.1.html
sa-learn(1) - train SpamAssassin's Bayesian classifier......
Given a typical selection of your incoming mail classified as spam or ham (non-spam), this tool will feed each mail to SpamAssassin, allowing it to learn what s

manpages/XvVideoNotify.3.html
XvVideoNotify(3) - event generated for video processing.....
XvVideoNotify events are generated when video is started, stopped, preempted by another video request, ignored because the port is grabbed by another client, or

manpages/wsetscrreg.3ncurses.html
wsetscrreg(3ncurses) - curses output options (Man Page).....
These routines set options that change the style of output within curses. All options are initially FALSE, unless otherwise stated. It is not necessary to turn

manpages/iswpunct.3.html
iswpunct(3) - test for punctuation or symbolic wide characte
The iswpunct() function is the wide-character equivalent of the ispunct(3) function. It tests whether wc is a wide character belonging to the wide-character cla

manpages/body.n.html
body(n) - change the body for a class method/proc (ManPage)
The body command is used outside of an [incr Tcl] class definition to define or redefine the body of a class method or proc. This facility allows a class defini

manpages/ExtUtils::MM_VOS.3pm.html
ExtUtils::MM_VOS(3pm) - VOS specific subclass of ExtUtils::M
This is a subclass of ExtUtils::MM_Unix which contains functionality for VOS . Unless otherwise stated it works just like ExtUtils::MM_Unix Overridden methods e

manpages/XISelectEvents.3.html
XISelectEvents(3) - select for or get selected XI2 events on
XI2 events must be selected using XISelectEvents. XISelectEvents sets the event mask for this client on win. Further events are only reported to this client if

manpages/mvget_wch.3ncurses.html
mvget_wch(3ncurses) - get (or push back) a wide character fr
The get_wch, wget_wch, mvget_wch, and mvwget_wch functions read a character from the terminal associated with the current or specified window. In no-delay mode,

manpages/XCompositeGetOverlayWindow.3.html
XCompositeGetOverlayWindow(3) - X Composite Extension librar
The composite extension provides several related mechanisms: Per-hierarchy storage The rendering of an entire hierarchy of windows is redirected to off-screen s

manpages/fopencookie.3.html
fopencookie(3) - opening a custom stream - Linux man page...
The fopencookie() function allows the programmer to create a custom implementation for a standard I/O stream. This implementation can store the streams data at

manpages/pcre32_utf32_to_host_byte_order.3.html
pcre32_utf32_to_host_byte_order(3) Perl-compatible regular e
pcre32_utf32_to_host_byte_order.3 - This function, which exists only in the 32-bit library, converts a UTF-32 string to the correct order for the current host,





We can't live, work or learn in freedom unless the software we use is free.