PC SOFT

WINDEV的在线文档

  • Overview
  • Implementation
  • Creating an arrow button
  • Characteristics and operating mode of buttons with arrow
  • Positioning of the arrow
  • Button with arrow with opening of a popup window
  • Button with distinct arrow that opens a menu and that stores the selecting option
  • Arrow button used in a Ribbon control
文档页面当前正在翻译。对于此延迟我们深表歉意。
您可以自愿地帮助我们翻译您想要的文档段落,然后只需通过以下地址与我们联系: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
The button with arrow is a button used to expand:

  • a popup menu.

  • a "Popup" window.

This type of button is used to propose a set of actions in a single button.
  • The click on the button runs the default choice.
  • The click on the arrow expands the menu or the popup window.

Implementation

Creating an arrow button

To crate an arrow button:
  1. Create a button.
  2. Display the "GUI" tab in the description window of the button and select the type of arrow. the available options are as follows:
    • No arrow (default value): the button is a standard button.
    • Arrow button: the button and the arrow perform the same action.

      You can choose to:
      • run the click code of the button.
      • expand the popup menu associated with the button.
      • display one of the application windows (a popup window presenting a specific menu for example).
    • Button with distinct arrow: the button and the arrow run two distinct actions.
      • The button runs its code.
      • The arrow runs:
        - the click code of the arrow.
        - the specified action:

        You can choose to:
      • run the click code of the button.
      • expand the popup menu associated with the button.
        In this case, you have the ability to specify that "The click on the button will automatically run the last action selected via the arrow".
      • display one of the application windows (a popup window presenting a specific menu for example).
  3. Validate the description window.

Characteristics and operating mode of buttons with arrow

Positioning of the arrow

According to the size, to the position of the caption in the button and to the presence of an icon in the button, the arrow can be positioned on the right of the button or below the button.

Button with arrow with opening of a popup window

If your button must open a window, we recommend that you use a window:
  • without title
  • without menu
  • of reduced size
  • that uses a simple border.
Note: You have the ability to create a popup window directly ("Blank for popup" in the "Standard" tab of the wizard for window creation).

Button with distinct arrow that opens a menu and that stores the selecting option

When creating a button with distinct arrow that opens a menu, if "The click on the button will automatically run the last action selected via the arrow", the operating mode of the button will be as follows:
  • during the first opening of the window containing the button, the caption of the button contains the first option of the popup menu (image associated with the option and caption of the option).
  • when the user expands the popup menu and selects an option:
    • the caption of the option and the associated image are automatically displayed in the button.
    • the code of the selected option is run.
Note: if the menu option contains an image, WinDev automatically manages the different states on the image displayed in the button at run time.

Arrow button used in a Ribbon control

If a Button control is found in a grouping of a Ribbon control, the "GUI" tab of the Button control is used to configure the management mode of the button when the ribbon is reduced.

You can:

  • avoid reducing the control.
  • reduce it to display the image of the button and its caption.
  • reduce it to display the image of the button.
The last two options are interesting for the buttons that display a specific icon and a caption.