PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • How to proceed?
  • Implementing an "Action Bar"
  • Adding an option of the main menu into the Action Bar
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
Warning
From version 17 (69), this help page is obsolete. See the help about the Action Bar control.
Overview
Android 3 implements new possibilities for your applications, especially the ability to use the "Action bars".
The "Actions bars" replace the title bar of a window and they are used to display various information:
  • the application icon,
  • the window title,
  • some menu options,
  • the drop-down menu of your window.
Note: the "Action bars" are available for the phones and tablets running Android 3 (and later). If an Action Bar is used with an earlier version, a title bar is displayed.
How to proceed?

Implementing an "Action Bar"

To implement an "Action Bar" in your window:
  1. Display the description window of the window ("Description" from the popup menu).
  2. In the "Style" tab, select "With Action Bar".
    options of
  3. Validate. The title bar is replaced by an Action Bar.
Caution: In the editor, no control must be positioned in the Action Bar.
At run time, the following elements are automatically displayed in the Action Bar:
  • the icon of the application.
  • the title of the window (if it exists)
  • an icon used to expand the main menu of your application.
    Note: in this menu, the images associated with the menu options are not displayed.
Caution: If the Action Bar is enabled, the main menu of the application is no longer displayed at the bottom of the window.
Example of Action Bar on a tablet
Action Bar

Adding an option of the main menu into the Action Bar

To add an option of the main menu into the Action Bar:
  1. Select the requested menu option. This menu option must be a final option of the main menu (this option must not include any sub-options).
  2. Display the description window of the menu option ("Description" from the popup menu).
  3. In the "GUI" tab, check "Move this option into the Action Bar".
  4. Validate.
At run time:
  • The option will no longer be visible via the button used to open the menu.
  • If the option contains an image, only this image will be displayed in the Action Bar.
  • If the option only contains a caption, only this caption will be displayed in the Action Bar.
Example:
Action Bar
Minimum required version
  • Version 17
Comments
Click [Add] to post a comment