Platforms to show: All Mac Windows Linux Cross-Platform

/MacExtras/OSAKit Script Editor


Required plugins for this example: MBS MacCocoa Plugin, MBS MacBase Plugin, MBS MacExtras Plugin, MBS Main Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacExtras/OSAKit Script Editor

This example is the version from Mon, 5th May 2019.

Project "OSAKit Script Editor.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
EventHandler Sub Open() dim languages() as OSALanguageMBS = OSALanguageMBS.availableLanguages for each language as OSALanguageMBS in languages dim w as new window1(language) next End EventHandler
End Class
Class Window1 Inherits Window
Control OSAScriptControlMBS1 Inherits OSAScriptControlMBS
ControlInstance OSAScriptControlMBS1 Inherits OSAScriptControlMBS
End Control
Control TextArea1 Inherits TextArea
ControlInstance TextArea1 Inherits TextArea
End Control
Control CompileButton Inherits PushButton
ControlInstance CompileButton Inherits PushButton
EventHandler Sub Action() Controller.compileScript End EventHandler
End Control
Control RecordButton Inherits PushButton
ControlInstance RecordButton Inherits PushButton
EventHandler Sub Action() Controller.recordScript End EventHandler
End Control
Control RunButton Inherits PushButton
ControlInstance RunButton Inherits PushButton
EventHandler Sub Action() Controller.runScript End EventHandler
End Control
Control StopButton Inherits PushButton
ControlInstance StopButton Inherits PushButton
EventHandler Sub Action() Controller.stopScript End EventHandler
End Control
Control SourceButton Inherits PushButton
ControlInstance SourceButton Inherits PushButton
EventHandler Sub Action() MsgBox controller.script.Source End EventHandler
End Control
Sub Constructor(l as OSALanguageMBS) // Calling the overridden superclass constructor. Super.Constructor Controller = new OSAScriptControllerMBS controller.language = l controller.resultView = TextArea1.NSTextViewMBS Controller.scriptView = OSAScriptControlMBS1.view Title = Title + " - " + l.Name End Sub
Property Controller As OSAScriptControllerMBS
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 MacExtras Plugin.


The biggest plugin in space...