PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Overview
  • Implementation
  • Create an arrow Button control
  • Characteristics and operating mode of buttons with arrow
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Overview
The arrow button is a Button control used to expand:
  • a popup menu.
  • a "Popup" window.
This type of Button control 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

Create an arrow Button control

To crate an arrow Button control:
  1. Create a Button control.
  2. Display the "GUI" tab in the control description window and select the type of arrow. The available options are:
    • No arrow (default value): the Button control is a standard button.
    • Arrow button: the button and the arrow perform the same action.
      You can:
      • run the click code of the Button control.
      • expand the popup menu associated with the Button control.
      • display one of the application windows (a popup window presenting a specific menu for example).
    • Button with distinct arrow: the Button control and the arrow run two distinct actions.
      • The button runs its code.
      • The arrow runs:
        - the click code of arrow.
        - the specified action:
        You can:
        • run the click code of the Button control.
        • expand the popup menu associated with the Button control.
          In this case, it is possible to check the option "The click on the button will automatically run the last menu option 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
  • no title,
  • without menu,
  • of reduced size,
  • that is using a simple border.
Remark: You have the ability to create a popup window directly ("Blank for popup" in the "Standard" tab of wizard for window creation).
The click on the button will automatically run the last menu option selected via the arrow
  • 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 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 selected option is run.
Remark: if the menu option contains an image, WINDEV automatically manages the different states on the image displayed in the button at run time.
You can:
  • avoid reducing the control.
  • reduce it to display the image of button and its caption.
  • reduce it to display the image of button.
The last two options are interesting for the buttons that display a specific icon and a caption.
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment