Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
Common Desktop Environment: Help System Author's and Programmer's Guide > Chapter 10 Handling Events in Help Dialogs

Detecting When Help Dialogs Are Dismissed

» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

To detect when a general help dialog is closed, add the following callback to the dialog:

XtAddCallback (helpDialog, DtNcloseCallback,
HelpCloseCB, (XtPointer)NULL);

Where helpDialog is the widget ID for the help dialog and HelpCloseCB is the name of the callback procedure you've written to handle closing dialogs.

To detect when a quick help dialog is closed, add the following callback to the dialog's OK button:

XtAddCallback (DtHelpQuickDialogGetChild ( helpDialog,
DtHELP_QUICK_OK_BUTTON), XmNactivateCallback, HelpCloseCB,
(XtPointer)NULL);

Where helpDialog is the widget ID for the help dialog and HelpCloseCB is the name of the callback procedure you've written to handle closing dialogs.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.