WebToolbar
From Xojo Documentation
Class (inherits from WebControl)
New in 2011r2
- For desktop applications, see Toolbar.
Adds a toolbar to a WebPage.
Events | ||||||||
|
Methods | ||||||||||||
|
Enumerations | |
|
Notes
See the Pressed and MenuSelected events for example of how button clicks and menu selections are handled. See the Shown event handler for the code that populates the menu.
Examples
This code adds a nested menu to a menu button:
// Create the menu
Var chartMenu As New WebMenuItem
Var lineMenu As New WebMenuItem("Lines")
lineMenu.AddMenuItem(New WebMenuItem("Dotted lines"))
lineMenu.AddMenuItem(New WebMenuItem("Solid lines"))
chartMenu.AddMenuItem(lineMenu)
// Assign it to the button
Var chartButton As WebToolbarButton
chartButton.DropDownMenu = chartMenu
Var chartMenu As New WebMenuItem
Var lineMenu As New WebMenuItem("Lines")
lineMenu.AddMenuItem(New WebMenuItem("Dotted lines"))
lineMenu.AddMenuItem(New WebMenuItem("Solid lines"))
chartMenu.AddMenuItem(lineMenu)
// Assign it to the button
Var chartButton As WebToolbarButton
chartButton.DropDownMenu = chartMenu
See Also
WebToolbarButton, WebToolbarItem, WebMenuItem, classes.