DesktopMenuItem.Visible
From Xojo Documentation
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site! |
Property (As Boolean )
![]() |
This property is only available on macOS and Linux platforms. For cross-platform compatibility, use #If...#Endif with the Target... specifiers to make sure you will not attempt to use this property on an incompatible platform. |
aDesktopMenuItem.Visible = newBooleanValue
or
BooleanValue = aDesktopMenuItem.Visible
New in 2021r3
Supported for all project types and targets.
or
BooleanValue = aDesktopMenuItem.Visible
New in 2021r3
Supported for all project types and targets.
Indicates whether or not the menu item is visible. The default is True. If False, the menu item does not appear and no blank space is for it is in the menu.
Notes
This property does nothing on Windows so use DesktopMenuItem.RemoveMenuAt instead.
Sample Code
This code is in the Opening event of the main window:
EditFind.Visible = False