Platforms to show: All Mac Windows Linux Cross-Platform

/Util/application


Required plugins for this example: MBS Util Plugin, MBS MacOSX Plugin

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

This example is the version from Thu, 31th Jul 2019.

Project "application.xojo_binary_project"
Class Window1 Inherits Window
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control StaticText2 Inherits Label
ControlInstance StaticText2 Inherits Label
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
EventHandler Sub Open() me.text=app.ApplicationNameMBS End EventHandler
End Control
Control Timer1 Inherits Timer
ControlInstance Timer1 Inherits Timer
EventHandler Sub Action() update End EventHandler
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
EventHandler Sub Open() if targetwin32 then me.text="n/a" else me.text=app.ApplicationCreatorCodeMBS end if End EventHandler
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
EventHandler Sub Open() me.text=app.ApplicationFileMBS.UnixpathMBS // needs MBS MacOSX plugin End EventHandler
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
EventHandler Sub Open() me.text=app.ApplicationFileMBS.NativePath End EventHandler
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
EventHandler Sub Open() if targetwin32 then me.text="n/a" end if End EventHandler
End Control
EventHandler Sub Activate() update End EventHandler
Sub update() if targetmacOS then dim s as string if app.FrontmostMBS then s="yes" else s="no" end if if staticText10.text<>s then staticText10.text=s end if 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

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


The biggest plugin in space...