Platforms to show: All Mac Windows Linux Cross-Platform


Required plugins for this example: MBS Linux Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Linux/LinuxWindow

This example is the version from Mon, 9th Dec 2012.

Project "LinuxWindow.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control Slider1 Inherits Slider
ControlInstance Slider1 Inherits Slider
EventHandler Sub ValueChanged() w.Opacity = me.Value / me.Maximum End EventHandler
End Control
Control Label1 Inherits Label
ControlInstance Label1 Inherits Label
End Control
Control Keep Inherits RadioButton
ControlInstance Keep(0) Inherits RadioButton
ControlInstance Keep(1) Inherits RadioButton
ControlInstance Keep(2) Inherits RadioButton
ControlInstance Keep(3) Inherits RadioButton
EventHandler Sub Action(index as Integer) Select case index case 0 // normal w.Unstick w.SetKeepBelow(false) w.SetKeepAbove(false) case 1 // sticky w.Stick w.SetKeepBelow(false) w.SetKeepAbove(false) case 2 // keep above w.Unstick w.SetKeepBelow(false) w.SetKeepAbove(true) case 3 // keep below w.Unstick w.SetKeepAbove(false) w.SetKeepBelow(true) end Select End EventHandler
End Control
Control Label2 Inherits Label
ControlInstance Label2 Inherits Label
End Control
EventHandler Sub Open() w = self.GTKWindow w.Title = "Hello World" // disable slider if we can't do alpha if w.IsComposited = false then Slider1.Enabled = false end if End EventHandler
Property w As gtkwindowMBS
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

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

The biggest plugin in space...