AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / Funcionalidades Automáticas de la Aplicación (FAA) / FAA en botones
  • Overview
  • How to?
  • Configuring the keyboard shortcut
  • Changing 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/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Keyboard shortcut on a button (AAF)
Overview
Who hasn't wanted to define their own keyboard shortcuts, to easily and quickly access the most used features of an application? WINDEV applications offer this functionality to all users. You can create and modify the keyboard shortcuts of your WINDEV applications.
You can create new shortcuts if necessary.
You also have the ability to edit default shortcuts. By doing so, you will be able to use either the default shortcuts or the ones you defined.
Reminder: The keyboard shortcut of a button is defined in the "UI" tab of the Button control description window ("Keyboard shortcut" option).
How to?

Configuring the keyboard shortcut

To configure the keyboard shortcut of a button:
  1. Right-click the button to open the context menu and select "Choose a keyboard shortcut...".
  2. In the window that appears, press the desired keys. The selected keys appear:
    Validate.
  3. The specified shortcut can be used whenever the window and the button are used.
Remarks:
  • 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.
  • If the button contains text, the custom shortcut is automatically displayed at the end of the text.
  • If the "<None>" shortcut is selected, the default behavior of the button will be applied.

Changing a custom keyboard shortcut

To change the custom keyboard shortcut:
  1. Select "Modify shortcut..." in the context menu of the button.
  2. In the window that appears, specify the shortcut keys to use.
  3. Validate the modification.
Remark: 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 custom shortcuts, use AAFDisable 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 translate it, simply include it in the project:
  1. On the "Project" tab, in the "Project" group, expand "Import" and select "WINDEV elements and their dependencies".
  2. Select the "Programs\Data\Preset Windows\EN\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.
Remarks:
  • 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.
Versión mínima requerida
  • Versión 14
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 04/09/2023

Señalar un error o enviar una sugerencia | Ayuda local