Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Util/Window Group/Desktop Window
Function:
Required plugins for this example: MBS Util Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Util/Window Group/Desktop Window
This example is the version from Sun, 17th Mar 2012.
Project "Desktop Window.rbp"
FileTypes
Filetype text
End FileTypes
MenuBar MenuBar1
MenuItem UntitledMenu1 = ""
MenuItem FileMenu = "&File"
MenuItem FileQuit = "Quit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu0 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class MainWindow Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
EventHandler Sub Open() const kCGBaseWindowLevelKey = 0 const kCGMinimumWindowLevelKey = 1 const kCGDesktopWindowLevelKey = 2 const kCGBackstopMenuLevelKey = 3 const kCGNormalWindowLevelKey = 4 const kCGFloatingWindowLevelKey = 5 const kCGTornOffMenuWindowLevelKey = 6 const kCGDockWindowLevelKey = 7 const kCGMainMenuWindowLevelKey = 8 const kCGStatusWindowLevelKey = 9 const kCGModalPanelWindowLevelKey = 10 const kCGPopUpMenuWindowLevelKey = 11 const kCGDraggingWindowLevelKey = 12 const kCGScreenSaverWindowLevelKey = 13 const kCGMaximumWindowLevelKey = 14 const kCGOverlayWindowLevelKey = 15 const kCGHelpWindowLevelKey = 16 const kCGUtilityWindowLevelKey = 17 const kCGDesktopIconWindowLevelKey = 18 const kCGCursorWindowLevelKey = 19 const kCGNumberOfWindowLevelKeys = 20 w = new WindowGroupMBS w.Create(0) w.Level = w.LevelForKey(kCGDesktopWindowLevelKey) - 1 // -1 to put it behind icons self.IgnoreClicksMBS=true self.WindowGroupMBS = w left=screen(0).left top=screen(0).top width=screen(0).width height=screen(0).height End EventHandler
Property w As WindowGroupMBS
End Class
Class App Inherits Application
EventHandler Sub Open() MainWindow.Show End EventHandler
End Class
End Project

See also:

Feedback, Comments & Corrections

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





Links
MBS Xojo PDF Plugins