PC SOFT

WINDEV的在线文档

  • Overview of the Button control
  • Control in a window or in a page (static or dynamic page)
  • Buttons in a window
  • Button control in a window
  • Creating a button control
  • Examples
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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 of the Button control

Control in a window or in a page (static or dynamic page)

The Button control allows the user or the Web user to run a specific action via a mouse click.

16版本和更高版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
16新版本
WinDevLinux This type of control is now available for the WinDev applications in Linux.
WinDevLinux This type of control is now available for the WinDev applications in Linux.
18版本和更高版本
WinDevWindows Store apps This type of control is now available for the applications in Windows Store Apps mode.
18新版本
WinDevWindows Store apps This type of control is now available for the applications in Windows Store Apps mode.
WinDevWindows Store apps This type of control is now available for the applications in Windows Store Apps mode.

Buttons in a window
WinDevWindows Store apps

Button control in a window

The Button control allows the user to run a specific action via a mouse click.

A button can include:

  • text,
  • image,
  • text and image.
WinDev and WinDev Mobile provide a lot of possibilities for customizing buttons, their looks and their effect.

You can:

  • define the type of button. Each type of button is used to perform a specific action.
  • create on/off buttons.
  • 17版本和更高版本
    WinDev create buttons with arrow.
    17新版本
    WinDev create buttons with arrow.
    WinDev create buttons with arrow.
  • define images to illustrate the button or customize its shape. See Images and buttons for more details.
  • create animated buttons. See Images and buttons for more details.
  • 20版本和更高版本
    WinDev use RTF to format the caption of the button.
    Note: To use RTF in a Button control, check "RTF" in the "General" tab of the control description. The RTF configuration bar appears above the caption of the control in order to configure it easily. You also have the ability to directly copy a RTF code in the caption of the control.
    20新版本
    WinDev use RTF to format the caption of the button.
    Note: To use RTF in a Button control, check "RTF" in the "General" tab of the control description. The RTF configuration bar appears above the caption of the control in order to configure it easily. You also have the ability to directly copy a RTF code in the caption of the control.
    WinDev use RTF to format the caption of the button.
    Note: To use RTF in a Button control, check "RTF" in the "General" tab of the control description. The RTF configuration bar appears above the caption of the control in order to configure it easily. You also have the ability to directly copy a RTF code in the caption of the control.

Creating a button control
To create a Button control:
  1. In the window editor or in the page editor, click(or select "Insert .. Control .. Button").On the "创建" pane, in the "常用控件" group, click.
  2. Click the position where the control must be created in the window or in the page. The control appears in creation mode.
Tip: You also have the ability to create a "preset" Button control by clicking the arrow found on the right of the icon. The list of available buttons (with their preview in the skin template of the project) is displayed. All you have to do is click the requested button to create it in the editor.Tip: You also have the ability to create a "preset" Button control by expanding "Button". The list of available buttons (with their preview in the skin template of the project) is displayed. All you have to do is click the requested button to create it in the editor.

To display the characteristics of the control, select "Description" from the popup menu of the control.

Examples
Several examples of button controls are available. These button controls are accessible from the "Wizards, Examples and Components" pane:
  1. Click the "Controls" button.
  2. Select "Buttons" in the list.
  3. The list of buttons is displayed.
All you have to do is Drag and Drop the button to the current window or page in order to include it in this window or page.