PC SOFT

WINDEV的在线文档

  • Overview
  • Button and tabulation
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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本地访问

The different types of buttons in a window

Overview
WinDev and WinDev Mobile propose 5 types of buttons. Each one is used to perform a specific type of operation.

TypeDescription
NormalStandard button.

Sequence of processes: During a mouse click on a "Normal" button (or when using the associated shortcut):

  • the exit process of the current control is run.
  • the click code of the button is run.
Use mode: The "Normal" buttons must not be used in the windows containing controls. This type of button can be used in the toolbars, in the icon bars or in the windows without edit controls.
Validation"Default" button of the window.

Sequence of processes: During a mouse click on a "Validation" button (or when using the associated shortcut):

  • the exit process of the current control is run.
  • the click code of the button is run.
The code of this button is run when pressing the [Enter] key if:
  • no other window control intercepts the ENTER key
  • no other window control has focus.
If two validation buttons are found in the same window, the code run is the code of the first "validation" button found according to the tab order of the window.

Use mode: A VALIDATION button must be used to validate the input in a window. A VALIDATION button must be found in the window as soon as an input can be performed in an edit control. This is the type used for the "OK" buttons.

Windows Store apps This type of button is not available.
InterruptionButton used to interrupt the current process.

Sequence of processes: During a mouse click on an "Interruption" button (or when using the associated shortcut):

  • the click code of the button is run.
  • the button does not keep focus. The focus is given back to the control that was used beforehand.
Note: The exit code of the current control is not run during the click on the button.

Use mode: An "Interruption" button will be used to call a window (to interrupt the current input without validating) and to resume the input. This is the type used for the "Help" buttons.

Windows Store apps This type of button is not available.
CancelationThe button performs the same action as the [ESC] key.

  • when pressing the [ESC] key if no other window control intercepts the ESC key.
  • when pressing the ALT F4 keys
  • when closing the window via the cross.
If two cancelation buttons are found in the same window, the code run is the code of the first cancelation button found according to the tab order of the window.

Use mode: A "Cancelation" button will be used to "exit" from the window currently in edit without validating. In an edit window, a "Cancelation" button is required to cancel the current input without validating. This is the type used for the "Cancel" buttons.

Windows Store apps This type of button is not available.
HelpThe button performs the same action as the [F1] key. The click process is run (unlike the operating mode in WinDev 5.5). This button is used to display the help window associated with the current control. A Help button does not keep focus. The focus is given back to the control that was used beforehand. Neither the exit code of this control nor the entry code in the control are run during the click on the "Help" button.

Windows Store apps This type of button is not available.

Summary table:

If your window contains no edit control
Type of button to useNormal buttons.
If your window contains at least one edit control
Type of button to use
  • A Validation button
  • A Cancelation button
  • A Help button (if the controls have associated help windows)
  • All the other buttons are Interruption buttons.

Button and tabulation
According to the Windows standard, the tabulation key ([TAB]) allows you to move from a control (in edit) to another one.

You also have the ability to move from a control (in edit) to another one with the [Enter] key: to do so, no active button found in the window must be a Validation button and no control must be associated with the [Enter] key.

Windows Store apps The management via the Tab key is not available.