Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

Previous items

Window.WinMenuHandleMBS as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Window MBS Util Plugin No Yes No No No
Function: A property to access the handle used for the menu of a Window.
dim menu as Integer // global

if menu=0 then
menu=Window1.WinMenuHandleMBS // read it on the first window
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 Realbasic 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)

Feedback, Comments & Corrections

Previous items

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

MBS Xojo Chart Plugins