The following tasks are associated with using an IHelpWindow*
part in visual composition. Tasks that are common to many parts
are described in related topics.
-
- Defining the title
- To define the title for your help window, set the Title
property in the IHelpWindow* property sheet. Enter the
title in the value column.
- Indicating the help type
- To indicate whether you use OS/2-style help or native
system help, open the style property in the
IHelpWindow* property sheet.
- If you are using OS/2-style Information
Presentation Facility (IPF) help, set the ipfCompatible
style to on.
- If you are using native help for the system, set
the ipfCompatible style to off.
If you indicate that you are are using native system
help, the help type is assumed as follows:
| System |
Help type |
| OS/2 |
Information
Presentation Facility (IPF) |
| Windows |
Rich Text Format
(RTF) |
- Identifying help files
-
To identify the help (.hlp) files for your
application, set the Help libraries property in
the IHelpWindow* property sheet. Enter file names,
separated by spaces, in the value column. If you do not
specify a path with the file names, the environment help
path is used.
- Associating help with a frame window
- To enable help for primary frame windows, they must be
associated with a help window. If you use IPF help, you
should also associate secondary windows with the help
window. The help window is automatically associated with
the primary frame window in the composite part that
contains the IHelpWindow* part.
Associate a secondary
frame window with the help window when the secondary
window is created.
- For a static secondary window, connect the ready
event of the primary composite part (from the
free-form surface) to the setAssociatedWindow
action of the IHelpWindow* part. Then, connect
the this attribute of the secondary window
to the ready-to-setAssociatedWindow
connection to provide the frame window parameter.
- For a dynamically created secondary window,
connect the Factory newEvent feature to
the IHelpWindow* setAssociatedWindow
action. The newEvent feature provides the
frame window object as a parameter.
- Identifying a help panel
- To link each frame window and control with its help
panel, set the helpId property in its property
sheet. Enter the help panel ID in the value column. The
panel ID is the resource number specified for the the
help panel heading.
Setting Part Style Properties
Setting Part Color Properties
Setting Part Font Properties
Setting Part Handlers
Properties
Setting Part Framing Properties
Working with VisualAge User
Interface Parts
IHelpWindow
Property Settings --
IHelpWindow
Portability --
IHelpWindow