PDA

View Full Version : Help Button on dialogs?



stevenprentice
09-26-2003, 05:28 PM
Short of creating custom dialogs for every dialog in our sequence, is there any way to add a help button to all of the dialogs? Selecting help would just need to fire the OnHelp event.

I've seen a help button on some installshield dialogs (on the lower-left corner), but this may have been from Developer or some custom dialog.

Thanks.
-Steve

DevinEllingson
10-01-2003, 01:16 AM
stevenprentice,

To display help via. a help button:

1. Use the dialog editor to add a help button to all the dialogs in question.
2. Make sure the buttons have an Id of 8.
3. Update the "OnHelp" handler to display the help file as desired.
4. You can use the built in function "GetCurrentDialogName" to determine the current dialog, so that you can display the appropriate help page.
4. End-users can also use F1 to access the help.

Devin Ellingson
InstallShield Software Corporation

eposty
03-10-2004, 04:22 PM
Originally posted by DevinEllingson
stevenprentice,

To display help via. a help button:

1. Use the dialog editor to add a help button to all the dialogs in question.
2. Make sure the buttons have an Id of 8.
3. Update the "OnHelp" handler to display the help file as desired.
4. You can use the built in function "GetCurrentDialogName" to determine the current dialog, so that you can display the appropriate help page.
4. End-users can also use F1 to access the help.

Devin Ellingson
InstallShield Software Corporation

When you say, "display the help file as desired", what kind of file does it have to be or could one just use notepad and open a text file or something. That looks pretty ugly using notepad and a text file, but what else could one use?

Of course, I am using ISPro 7, but was just wondering in that case.

anjnak
01-13-2009, 12:56 AM
I am implementing context sensitive help in installscript project( Installshield 2008). I looked for the usage of OnHelp function and it says :
function OnHelp( )

begin

/* Assumes that MySetupHelp.chm is located

in the Support Files view. */

LaunchAppAndWait( WINDIR ^ "Hh.exe",

SUPPORTDIR ^ "MySetupHelp.chm",

NOWAIT );

end;

How do I launch the dialog specific help from a CHM file>
How can I launch html page from Help button?

Regards
AK

anjnak
01-13-2009, 01:40 AM
I found the solution at following location:
http://www.installsite.org/pages/en/isp_ext.htm
Go to ->
Open HTML Page in Default Browser / Launch Associated Application