PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

  • Overview
  • How to proceed?
  • Configuring the keyboard shortcut
  • Modifying a custom keyboard shortcut
  • Disabling the ability to create custom shortcuts
  • Modifying the window for choosing the shortcut keys
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Keyboard shortcut on a button (AAF)
Overview
Who has never wanted to define his own keyboard shortcuts to easily access the most common features of an application? The WINDEV applications propose this feature to the users. You have the ability to create and modify the keyboard shortcuts of your WINDEV applications.
The keyboard shortcut can be created if it does not exist.
The default keyboard shortcut can be modified if it does not suit you. In this case, you will have the ability to use the default shortcut or the shortcut that was just created.
Reminder: The keyboard shortcut of a button is defined in the "GUI" tab of the button description ("Shortcut" option).
How to proceed?

Configuring the keyboard shortcut

To configure the keyboard shortcut of a button:
  1. Select "Choose a keyboard shortcut..." from the popup menu of button (right mouse click).
  2. In the window that is displayed, press the selected keys directly. The selected keys appear:
    All you have to do is validate.
  3. The specified shortcut can be used whenever the window and the button are used.
Notes:
  • If the selected shortcut is already used in the window, a message indicates that the selected shortcut cannot be used.
  • The custom shortcut is automatically displayed in the button tooltip. If a text is already displayed in the tooltip, the shortcut is displayed at the end of the text.
  • Versions 17 and later
    If the button contains a caption, the custom shortcut is automatically displayed at the end of the button caption.
    New in version 17
    If the button contains a caption, the custom shortcut is automatically displayed at the end of the button caption.
    If the button contains a caption, the custom shortcut is automatically displayed at the end of the button caption.
  • If the "<None>" shortcut is selected, the default behavior of the button (intended by the developer) will be restored.

Modifying a custom keyboard shortcut

To modify a custom keyboard shortcut:
  1. Select "Modify the shortcut..." from the popup menu of the button.
  2. In the window that is displayed, specify the shortcut keys to use.
  3. Validate the modification.
Note: If the "<None>" shortcut is selected, the default behavior of the button (intended by the developer) will be restored.

Disabling the ability to create custom shortcuts

To prevent the user from creating the custom shortcuts, all you have to do is use DisableAAF associated with the aafAddShortcut constant.To prevent the user from creating custom shortcuts, use AAFDisable (or DisableAAF) associated with the aafAddShortcut constant.

Modifying the window for choosing the shortcut keys

By default, the window for choosing the shortcut keys is available in English and in French.
To modify this window or to translate it, all you have to do is include this window in the project:
  1. Select "File .. Import .. WINDEV elements and their dependencies".On the "Project" pane, in the "Project" group, expand "Import" and select "WINDEV elements and their dependencies".
  2. Select the "Programs\Data\Preset windows\AAF" directory.
  3. Select the "WinDevAaf_BtnShortcut.wdw" window.
  4. Validate the import. The window is included in your project and it can be translated or modified.
Notes:
  • The window must not be renamed.
  • If this window is included in your application, you may not benefit from the improvements made to this window during the different updates. Don't forget to check whether this window has evolved.
  • Caution: To modify this window, the corresponding file must not be read-only. Modify the characteristics of the file in Windows if necessary.
Minimum required version
  • Version 14
Comments
Click [Add] to post a comment