Platforms to show: All Mac Windows Linux Cross-Platform

Back to Window class.

Window.WinMenuHandleMBS as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Window MBS Util Plugin ❌ No ✅ Yes ❌ No ❌ No Desktop only
A property to access the handle used for the menu of a Window.
Example
dim menu as Integer // global

if menu=0 then
menu=Window1.WinMenuHandleMBS // read it on the first window
else
Window1.winmenuHandleMBS=menu // set it on the second window
end if

Used in the example "Menu in every Window" to have a menubar in every window on Windows. But never forget to quit your app after all windows were closed.
In Xojo 2005 and newer you need to use self. in front of the method as the propertyname alone is not accepted.
(Read and Write computed property)

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...