User Tools

Site Tools


hlp_set_on_line_help_identifier_.htm
Navigation:  Language Reference > 9 -  Window and Report Attributes > Window and Report Attributes >====== HLP (help-id) ====== Previous pageReturn to chapter overviewNext page

NewC7.jpg

HLP(helpID)

blk2blue.jpg

HLP Specifies the helpID for the APPLICATION, WINDOW, or control.
helpID A string constant specifying the key used to access the Help system. This may be either a Help keyword or a “context string.”

The HLP attribute (PROP:HLP) specifies the helpID for the APPLICATION or WINDOW.

The Help file is specified using the HELP function.

The Clarion runtime library uses the helpID of the active menu, control or window, searching up the hierarchy until an object with the helpID is found. The helpID of the APPLICATION is at the top of the hierarchy.

If the user presses the F1 key to request help when the APPLICATION window is foremost and no menus are active, the APPLICATION's helpID is used to locate the Help text.

The helpID may contain either a Help keyword/topic or a “context string.”

·A Help keyword is a word or phrase displayed in the Help Search dialog. When the user presses the F1 key, if only one topic in the help file specifies this keyword, the help file is opened at that topic; if more than one topic specifies the keyword, the search dialog is opened for the user.

·A “context string” is identified by a leading tilde (~) in the helpID, followed by a unique identifier (no spaces allowed) associated with a help topic. When the user presses the F1 key, the help file is opened at the specific help topic with that “topic name” If the tilde is absent, the helpID is assumed to be a help keyword.

When using HTML help (*.chm) the context string should specify either an html page or both the page and a named anchor within that html page. When specifying an html page the context string must include the .htm extension, as in myHelp.htm, to specify page and anchor the syntax is
myHelp.htm#theNamedAnchor.

Examples:

!using HTML Help

!using HTMLHelp (CHM)

MainWin APPLICATION('My Application'),SYSTEM,MAX,ICON('MyIcon.ICO'),STATUS,HLP('~App')

        MENUBAR

         MENU('&File'),USE(?FileMenu)

          ITEM('&Open…'),USE(?OpenFile),HLP('~Help_with_OpenFile.htm')

         END

        END

       END

!A Window with a help keyword:

Win2 WINDOW,HLP('Window One Help')

     ENTRY(@s30),USE(AccountNumber),HLP('Accounts.htm') !open specific page in help

ENTRY(@s30),USE(AccountName),HLP('Accounts.htm#AccountName')

!open specific page in help and position to an html named anchor “AccountName”

    END

!using WinHelp (.Hlp)

MainWin APPLICATION('My Application'),SYSTEM,MAX,ICON('MyIcon.ICO'),STATUS,HLP('~App')

        MENUBAR

         MENU('&File'),USE(?FileMenu)

          ITEM('&Open…'),USE(?OpenFile),HLP('~OpenFileHelp')

         END

        END

       END

!A Window with a help keyword:

Win2 WINDOW,HLP('Window One Help')

     ENTRY(@s30),USE(SomeVariable2),HLP('Control Two Help') ! open search for help keyword

    END

See also:

HELP

hlp_set_on_line_help_identifier_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1