This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Knowledge Base
- :
- How To: Create HotKeys in a Dialog box
Subscribe
- Mark as New
- Mark as Read
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
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 boxSynopsis
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.
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.
No ratings