Create a help dialog.
Set the following resources for the help dialog:
Set to DtHELP_TYPE_TOPIC.
Set to the volume name for your application.
Set to the topic ID that you want to display.
You can also set other values for the dialog, such as its size and title.
Manage the dialog using XtManageChild().
This program segment displays a topic with the ID getting-started in the volume MyVolume.
ac = 0;
XtSetArg (al[ac], DtNhelpType, DtHELP_TYPE_TOPIC); ac++; XtSetArg (al[ac], DtNhelpVolume, "MyVolume"); ac++; XtSetArg (al[ac], DtNlocationId, "getting-started"); ac++; XtSetArg (al[ac], DtNcolumns, 40); ac++; XtSetArg (al[ac], DtNrows, 12); ac++; XtSetValues (helpDialog, al, ac); XtManageChild (helpDialog);
If the help volume MyVolume is not registered, then a complete path to the MyVolume.sdl file is required for the value of DtNhelpVolume.