Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dthelpreturnselectedwidgetid(3) [hpux man page]

DtHelpReturnSelectedWidgetId(library call)								DtHelpReturnSelectedWidgetId(library call)

NAME
DtHelpReturnSelectedWidgetId -- select a widget or gadget SYNOPSIS
#include <Dt/Help.h> int DtHelpReturnSelectedWidgetId( Widget parent, String cursor, Widget *widget); DESCRIPTION
The DtHelpReturnSelectedWidgetId function provides an interface for users to select a component within an application. This function grabs the pointer and returns the widget within which a button press occurs. Pressing the escape key (ESC) aborts this func- tion. The parent argument specifies the widget ID to use as the basis of the interaction, usually a top level shell. The cursor argument specifies the cursor to be used for the pointer during the interaction. If a NULL value is used, DtHelpReturnSelected- WidgetId uses a default cursor value. The widget argument is the return value (for example, the selected widget). A NULL value is returned on error. The DtHelpReturnSelectedWidgetId function allows applications to get the widget ID for any widget in their user interface that the user has selected via the pointer. The application can then directly display a help topic based on the selected widget, or dynamically construct some help information based on the current context of the selected item. At any point while the question mark cursor is displayed, the user can select the escape key to abort the function call, and a NULL value is returned. If the user selects any item outside the current applications windows, an error status is returned along with a NULL value for the widget argument. Refer to XmTrackingLocate(3) for a sim- ilar function. RETURN VALUE
Upon successful completion, the DtHelpReturnSelectedWidgetId function returns one of the following status values: DtHELP_SELECT_ERROR An error occurred while attempting to process the function. DtHELP_SELECT_INVALID The user selected an invalid component that is not contained in the current widget hierarchy. DtHELP_SELECT_ABORT The user aborted the function (for example, pressed the escape key), and a NULL widget value is passed back. DtHELP_SELECT_VALID The user selected a valid component within the application, and the widget argument is the ID of the selected component. SEE ALSO
Dt/Help.h - DtHelp(5), DtCreateHelpQuickDialog(3), DtCreateHelpDialog(3); XmTrackingLocate(3), DtHelpReturnSelectedWidgetId(library call)

Check Out this Related Man Page

XtNameToWidget(3)						   XT FUNCTIONS 						 XtNameToWidget(3)

NAME
XtNameToWidget, XtWindowToWidget - translating strings to widgets or widgets to windows SYNTAX
Widget XtNameToWidget(Widget reference, String names); Widget XtWindowToWidget(Display *display, Window window); ARGUMENTS
display Specifies the display on which the window is defined. names Specifies the fully qualified name of the desired widget. reference Specifies the widget from which the search is to start. window Specify the window for which you want the widget. DESCRIPTION
The XtNameToWidget function looks for a widget whose name is the first component in the specified names and that is a pop-up child of ref- erence (or a normal child if reference is a subclass of compositeWidgetClass). It then uses that widget as the new reference and repeats the search after deleting the first component from the specified names. If it cannot find the specified widget, XtNameToWidget returns NULL. Note that the names argument contains the name of a widget with respect to the specified reference widget and can contain more than one widget name (separated by periods) for widgets that are not direct children of the specified reference widget. If more than one child of the reference widget matches the name, XtNameToWidget can return any of the children. The Intrinsics do not require that all children of a widget have unique names. If the specified names contain more than one component and if more than one child matches the first component, XtNameToWidget can return NULL if the single branch that it follows does not contain the named widget. That is, XtNameToWidget does not back up and follow other matching branches of the widget tree. The XtWindowToWidget function translates the specified window and display pointer into the appropriate widget instance. SEE ALSO
X Toolkit Intrinsics - C Language Interface Xlib - C Language X Interface X Version 11 libXt 1.1.3 XtNameToWidget(3)
Man Page