ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Action Bar control
  • Default events
  • Optional events
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Default events
For the Action Bar control, WINDEV Mobile supports the following events by default (order of appearance in the code editor):
EventRuntime condition
Click on the left buttonRun when the user clicks the left button displayed in the Action Bar of window. A preset action can be run after this event. This action is defined in the "General" tab (option "1", button on the left).
Android To avoid running the preset action, this event must return False.
For more details, see "Left button" in the page named Describing the Action Bar control.
Remark: This event replaces the "Click on icon" event, available in version 18.
AndroidiPhone/iPad Modifying the search
Run when the user changes the search field of the Action Bar.
This event is available if the search was enabled in the Action Bar ("Allow the search in the Action Bar" in the "Details" tab of the Action Bar control description).
Remarks:
  • The search field of the Action Bar can be made visible by ActionBarSearchVisible.
  • The value typed in the search field can be retrieved and changed with the SearchValue property.
AndroidiPhone/iPad Validating the search
Run when the user validates the input in the search field of the Action Bar.
This event is available if the search was enabled in the Action Bar ("Allow the search in the Action Bar" in the "Details" tab of the Action Bar control description).
Remarks:
  • The search field of the Action Bar can be made visible by ActionBarSearchVisible.
  • The value typed in the search field can be retrieved with the SearchValue property.
Modifying the displayed viewRun when changing the displayed view. This event allows, for example, to modify the internal window displayed by the Action Bar Zone control.

For the Action Bar zone, WINDEV Mobile supports the following events by default (order of appearance in the code editor):
EventRuntime condition
After loading the internal windowRun when the internal window is changed by ChangeSourceWindow. This event is run after the "Global declarations" and "Initialization" events of the new internal window.
This event allows you, for example, to initialize controls or to restore values in the internal window.
ChangeSourceWindow must not be used in this event.
Before unloading the internal windowRun when the internal window is changed by ChangeSourceWindow. This event is run before the closing event of the initial internal window.
This event is used, for example, to save the values present in the internal window.
ChangeSourceWindow must not be used in this event.
Optional events
iPhone/iPad An optional event is proposed for the Action Bar control: "Pressed/Left button down".
To manage this optional event, simply select it in the icon bar of the code window.
For more details, see Optional events.
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 06/13/2023

Send a report | Local help