Provide What's This Help on a Form

File: SAMPLES\SOLUTION\FORMS\WHATTHIS\WHATTHIS.SCX

When you provide What’s This Help on a form, a button with a question mark is displayed in the upper right corner of the form.

When a user clicks this button or presses SHIFT+ F1, the form is set to WhatsThis mode. You can also programmatically enter this state by calling the WhatsThisMode method of the form. When the form is in WhatsThis mode, the mouse pointer changes. A user can click a control and get context-sensitive help for that control in a popup window.
Note If the WhatsThisHelpID of a control or a form is set to -1 (the default), the text in the popup window indicates that no help topic is available for the control.

To provide What’s This Help

  1. Create a Help file with a topic for each control on the form.

  2. In the Map section of the Help project, map HelpContextID values to the topics.

  3. Set the WhatsThisHelp property of the form to true (.T.).

  4. Set the WhatsThisButton property of the form to true (.T.).

  5. Set the WhatsThisHelpID of the controls to the appropriate helpcontextID values.

  6. In the Load or Init of the form, use the SET HELP TO command to specify the help file for the form.

In addition to WHATTHIS.SCX, this sample includes the following files:

File Description
WHATTHIS.HLP The Help file for the form
WHATTHIS.HPJ The Help project file
WHATTHIS.RTF The source document for the Help file