From Xojo Documentation

Revision as of 20:57, 26 April 2020 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As WebMenuItem )
aWebButton.Menu = newWebMenuItemValue
WebMenuItemValue = aWebButton.Menu

New in 2020r1

Supported for all project types and targets.

The Menu associated with this button. When a menu is associated with the button, it appears in a section separate from the rest of the button which includes an indicator that a menu is available.


Selecting an item from the menu will cause the MenuSelected event to execute.

Sample Code

This code (in the control's Opening event) adds a menu to the button:

Var theMenu As New WebMenuItem
Me.Menu = theMenu