cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How To: Create HotKeys in a Dialog box

How To: Create HotKeys in a Dialog box

Summary

How hotkeys (also known as accelerator keys) are created and used within a dialog box

Synopsis

Installshield Basic MSI Project type.

This article will discuss how to create checkboxes in a dialog box which can be selected via hotkeys (Alt + Hotkey) on the keyboard rather than using a mouse.

Discussion


In this example we will create 2 checkboxes on a dialog box which can be selected and deselected via hotkeys at run time. It is assumed that you have an understanding of how to create a sample dialog box that can be inserted into your installer project.

In the dialogs view select the CheckBox tool from the tool bar and add 2 check boxes to your sample dialog.

Hotkeys are created by using the ampersand (&) character in the checkbox "text" field. The character which follows the ampersand will become the hotkey.

User-added image

In the above screenshot you can see that the Text Value for Checkbox 1 is "&1. Checkbox". This means that "1" is now a hotkey and the checkbox can be selected by using "Alt and 1" at runtime.
In addition the value for the 2nd checkbox (not shown) is "&2. Checkbox" meaning that Alt and 2 will select and deselect it at runtime.
Was this article helpful? Yes No
No ratings
Version history
Last update:
‎Jul 18, 2018 12:25 AM
Updated by: