Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows GUI Resources
Function:
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows GUI Resources
This example is the version from Wed, 15th May 2018.
Project "Windows GUI Resources.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() update End EventHandler
End Control
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() update End EventHandler
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() dim w as new window2 End EventHandler
End Control
Control PushButton3 Inherits PushButton
ControlInstance PushButton3 Inherits PushButton
EventHandler Sub Action() dim u as integer = WindowCount-1 for i as integer = u downto 0 if window(i) isa window2 then window(i).close end if next End EventHandler
End Control
Control Label1 Inherits Label
ControlInstance Label1 Inherits Label
End Control
Control Label2 Inherits Label
ControlInstance Label2 Inherits Label
End Control
Control Label3 Inherits Label
ControlInstance Label3 Inherits Label
End Control
Control Label4 Inherits Label
ControlInstance Label4 Inherits Label
End Control
Control GDIObjectCount Inherits Label
ControlInstance GDIObjectCount Inherits Label
End Control
Control GDIObjectPeak Inherits Label
ControlInstance GDIObjectPeak Inherits Label
End Control
Control UserObjectCount Inherits Label
ControlInstance UserObjectCount Inherits Label
End Control
Control UserObjectPeak Inherits Label
ControlInstance UserObjectPeak Inherits Label
End Control
Control PushButton4 Inherits PushButton
ControlInstance PushButton4 Inherits PushButton
EventHandler Sub Action() redim pictures(-1) End EventHandler
End Control
Control PushButton5 Inherits PushButton
ControlInstance PushButton5 Inherits PushButton
EventHandler Sub Action() dim p as new Picture(100,100,32) dim g as Graphics = p.Graphics pictures.Append p End EventHandler
End Control
EventHandler Sub Open() update End EventHandler
Sub Update() dim w as new WindowsGUIResourcesMBS UserObjectCount.Text = str(w.UserObjectCount) UserObjectPeak.Text = str(w.UserObjectPeak) GDIObjectCount.Text = str(w.GDIObjectCount) GDIObjectPeak.Text = str(w.GDIObjectPeak) End Sub
Property pictures() As Picture
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
Class Window2 Inherits Window
Control CheckBox1 Inherits CheckBox
ControlInstance CheckBox1 Inherits CheckBox
End Control
Control Label1 Inherits Label
ControlInstance Label1 Inherits Label
End Control
Control PopupMenu1 Inherits PopupMenu
ControlInstance PopupMenu1 Inherits PopupMenu
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
End Control
Control RadioButton1 Inherits RadioButton
ControlInstance RadioButton1 Inherits RadioButton
End Control
End Class
End Project

See also:

Feedback, Comments & Corrections

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





Links
MBS FileMaker tutorial videos