PC SOFT

WINDEV的在线文档

  • Overview
  • How do I proceed?
  • Defining the shortcut of a window control
  • & character
  • Managing the & character in the window controls
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系:info@cn.windev.com
产品
WinDevWebDev-服务器代码WebDev-浏览器代码WinDev Mobile报表和查询
平台
WindowsLinuxWindows MobileWindows PhoneWindows Store appsAndroidAndroid Widget iPhone/iPad
语言
JavaPHPAjax用户代码(MCU)外部语言
数据库
HFSQLHFSQL Client/Server存储过程HF 5.5OLE DBODBC本地访问

Overview
A window control or a page control can be associated with an alphanumeric character, a keyboard key or a combination of keyboard keys, called "shortcut".

This shortcut gives direct access to the control from the keyboard (by selecting or clicking the control)).

Note: By default, a shortcut can be defined from the caption of the control ('&' character found in front of the caption letter defined as shortcut). See the "& character" for more details.

How do I proceed?
WinDev

Defining the shortcut of a window control

To define the shortcut of a window control:
  1. Display the description window of the control ("Description" from the popup menu).
  2. Display the "GUI" tab and click the button found on the right of the "Shortcut" control.
  3. Select the keys that make up the shortcut.
    16版本和更高版本
    The "Detection" button is used to detect the key (or the combination of keys) used on the keyboard.
    16新版本
    The "Detection" button is used to detect the key (or the combination of keys) used on the keyboard.
    The "Detection" button is used to detect the key (or the combination of keys) used on the keyboard.
  4. Validate.

& character
WinDev

Managing the & character in the window controls

By default, a shortcut can be defined from the caption of the control ('&' character found in front of the caption letter defined as shortcut).

The shortcut of the control will be [Alt]+[Letter following the &].

To display the '&' character in a caption, this character must be typed twice. For example:

  • "War&Peace" will be displayed as "WarPeace" (with [Alt]+[P] defined as shortcut).
  • "War&&Peace" will be displayed as "War&Peace".
To define how the '&' character will be interpreted, use ..直译&.

In order for the '&' character to be automatically inserted before the caption of the new controls, check "Automatic shortcut during control creation" ("Display .. Options .. Modify the options", "Controls" tab).In order for the '&' character to be automatically inserted before the caption of the new controls:
  1. Display the options of the window editor: on the "首页" pane, in the "环境" group, expand "选项" and select "Options of window editor".
  2. In the "Controls" tab, check "Automatic shortcut when creating a control".
  3. Validate.