PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Implementation
  • Creating an arrow button
  • 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 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 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:
      • run the click code of 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 arrow.
        - the specified action:
        You can:
      • run the click code of 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
  • without title
  • without menu
  • of reduced size
  • that is using a simple border.
Note: You have the ability to create a popup window directly ("Blank for popup" in the "Standard" tab of wizard for window creation).
  • 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 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.
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 required version
  • Version 17
Comments
Click [Add] to post a comment