DTHELPRETURNSELECTEDWIDGETID(3)
πΈ NAME πΈ
okay so this page is DtHelpReturnSelectedWidgetId(3) β yes, itβs a library call, bestie β and its whole personality is: select a widget or gadget. Thatβs the name, thatβs the mission, we love a clear queen. π
β¨ SYNOPSIS β¨
#include &<Dt/Help.h>
int DtHelpReturnSelectedWidgetId(
Widget parent,
String cursor,
Widget *widget);
π¦ DESCRIPTION π¦
The DtHelpReturnSelectedWidgetId function gives users an interface to select a component inside an application. It literally grabs the pointer and returns the widget within which a button press occurs. Pressing the escape key (ESC) aborts this function. π«Ά
The parent argument specifies the widget ID to use as the basis of the interaction β usually a top level shell. Main character energy for the shell, honestly.
The cursor argument specifies the cursor to be used for the pointer during the interaction. If a NULL value is used, DtHelpReturnSelectedWidgetId uses a default cursor value. Cute, it has a backup plan. β¨
The widget argument is the return value (for example, the selected widget). A NULL value is returned on error.
The DtHelpReturnSelectedWidgetId function lets applications 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. Obsessed with the contextual help glow-up. π₯
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 applicationβs windows, an error status is returned along with a NULL value for the widget argument. Refer to XmTrackingLocate(3) for a similar function β sibling energy, iykyk.
escape key = abort hatch, bestie. very βexit stage leftβ of it. π
π 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 aNULLwidget value is passed back.DtHELP_SELECT_VALIDβ the user selected a valid component within the application, and thewidgetargument is the ID of the selected component.
π SEE ALSO π
Dt/Help.hβ linking you toDtHelp(5),DtCreateHelpQuickDialog(3), andDtCreateHelpDialog(3)π¦XmTrackingLocate(3),β the similar-function reference, comma included because we respect the lore.
signing off from the library call corner: the footer marks this as DtHelpRetur...tedWidgetId(library call), and thereβs no date listed on the page β mysterious, iconic, very βwe donβt do timestamps here.β byeee πβ¨
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms