ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Navigation Bar control
  • Overview
  • Handling the Navigation Bar control through programming
  • Expanding the collapsed area
  • Other properties
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
Handling a Navigation Bar control through programming
Overview
The Navigation Bar control can be handled through programming. To do so, use the variable of the Navigation Bar control in the code. The variable of Navigation Bar control corresponds to the name of Navigation Bar control. The variable type is a character string.
Remark: The different areas found in the Navigation Bar control cannot be handled independently through programming.
Handling the Navigation Bar control through programming

Expanding the collapsed area

When the Collapsed property is used in browser code on the Navigation Bar control, it collapses or expands the middle area of the navigation bar.
You can use Collapsed in the hover code of a control for example.
The Collapsed property has an action if the Navigation Bar control is in compact mode only.
Example:
// -- Load code of the page (browser)
// Variable used to hide the drop-down menu in case of outside click
gbClickOnBurger is boolean = False
 
// -- Click on the page (browser code)
IF NOT gbClickOnBurger THEN
// Hide the menu
NAV_Bar.Collapsed = True
END
gbClickOnBurger = False

Other properties

For a complete list of WLanguage properties that can be used with a Navigation Bar control, see Properties associated with Navigation Bar controls.
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment

Last update: 01/23/2023

Send a report | Local help