Xojo Conferences

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows Monitors
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows Monitors
This example is the version from Sun, 17th Mar 2012.
Project "Windows Monitors.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() dim monitors() as WindowsMonitorMBS = WindowsMonitorMBS.AllMonitors for each m as WindowsMonitorMBS in monitors List.addrow m.DeviceName List.Cell(List.LastIndex,1) = str(m.IsPrimary) List.Cell(List.LastIndex,2) = str(m.Left)+"/"+str(m.top)+" to "+str(m.Right)+"/"+str(m.Bottom) List.Cell(List.LastIndex,3) = str(m.workLeft)+"/"+str(m.worktop)+" to "+str(m.workRight)+"/"+str(m.workBottom) List.Cell(List.LastIndex,4) = str(m.HMonitor) next End EventHandler
End Class
MenuBar MenuBar1
MenuItem FileMenu = "&Ablage"
MenuItem FileQuit = "#App.kFileQuit"
MenuItem EditMenu = "&Bearbeiten"
MenuItem EditUndo = "&Rückgängig"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "&Ausschneiden"
MenuItem EditCopy = "&Kopieren"
MenuItem EditPaste = "&Einfügen"
MenuItem EditClear = "#App.kEditClear"
MenuItem UntitledMenu0 = "-"
MenuItem EditSelectAll = "&Alles auswählen"
End MenuBar
End Project

See also:

Feedback, Comments & Corrections

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

MBS Xojo tutorial videos