Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows VM Statistics
Function:
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 VM Statistics
This example is the version from Sun, 17th Mar 2012.
Project "Windows VM Statistics.rbp"
Class Window1 Inherits Window
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() update End EventHandler
End Control
Control Pagesize Inherits Label
ControlInstance Pagesize Inherits Label
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control MemoryLoad Inherits Label
ControlInstance MemoryLoad Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control TotalPhysicalMemory Inherits Label
ControlInstance TotalPhysicalMemory Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control AvailablePhysicalMemory Inherits Label
ControlInstance AvailablePhysicalMemory Inherits Label
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control TotalPageFileMemory Inherits Label
ControlInstance TotalPageFileMemory Inherits Label
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Control AvailablePageFileMemory Inherits Label
ControlInstance AvailablePageFileMemory Inherits Label
End Control
Control StaticText11 Inherits Label
ControlInstance StaticText11 Inherits Label
End Control
Control TotalVirtualMemory Inherits Label
ControlInstance TotalVirtualMemory Inherits Label
End Control
Control StaticText13 Inherits Label
ControlInstance StaticText13 Inherits Label
End Control
Control AvailableVirtualMemory Inherits Label
ControlInstance AvailableVirtualMemory Inherits Label
End Control
Control StaticText15 Inherits Label
ControlInstance StaticText15 Inherits Label
End Control
EventHandler Sub Open() update End EventHandler
Sub update() dim w as WindowsVMStatisticsMBS w=GetWindowsVMStatisticsMBS if w<>nil then pagesize.text=format(w.pagesize,"0") memoryLoad.text=format(w.memoryLoad,"0") availablePageFileMemory.text=format(w.availablePageFileMemory,"0") availablePhysicalMemory.text=format(w.availablePhysicalMemory,"0") availableVirtualMemory.text=format(w.availableVirtualMemory,"0") totalPageFileMemory.text=format(w.totalPageFileMemory,"0") totalPhysicalMemory.text=format(w.totalPhysicalMemory,"0") totalVirtualMemory.text=format(w.totalVirtualMemory,"0") else msgBox "No Windows memory statistics..." quit end if End Sub
End Class
MenuBar Menu
MenuItem UntitledMenu3 = ""
MenuItem UntitledMenu2 = "File"
MenuItem FileQuit = "Quit"
MenuItem UntitledMenu0 = "Edit"
MenuItem EditUndo = "Undo"
MenuItem UntitledMenu1 = "-"
MenuItem EditCut = "Cut"
MenuItem EditCopy = "Copy"
MenuItem EditPaste = "Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

Feedback, Comments & Corrections

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





Links
MBS Xojo Plugins