1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
The help key is F1. If this key is pressed when a menu item,
window, etc. is active, help is activated for that object.
The Windows Help System is based on numerical help ID's and a
single help file which must have the same path as the application
with ".hlp" instead of ".exe". The help file ID's are built into the
help file Rich Text Format source, and the file is then compiled with
a help compiler. See the Microsoft documentation for directions on
how to set up a help file.
The following are used to access the Windows Help system:
For controls (menu buttons, push buttons), if the attribute
self.nHelpID is set, then help will be started with that context ID.
That is, the WPY system calls WinHelp(self.nHelpID, command). No
WPY controls have nHelpID defined, and you must set this attribute
and create a help file app.hlp to turn on help.
For windows, the method OnHelp(self) is called. If it exists and
it returns an integer, then help is started with that context ID.
To call WinHelp directly, use:
CWinApp::WinHelp(data, command)
Call Windows Help with the stated command and data. The
command is usually wpycon.HELP_CONTEXT to start help with
the help context number in data. This is a low level method
and you should specify nHelpID and return numbers with OnHelp()
instead.
|