Platforms to show: All Mac Windows Linux Cross-Platform
/MacCloud/Sandbox Safe LoginItems Helper App/Main
Required plugins for this example: MBS MacCF Plugin
Last modified Thu, 10th Jul 2024.
You find this example project in your MBS Xojo Plugin download as a Xojo project file within the examples folder: /MacCloud/Sandbox Safe LoginItems Helper App/Main
Download this example: Main.zip
Project "Main.xojo_binary_project"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control CheckUpdate Inherits CheckBox
ControlInstance CheckUpdate Inherits CheckBox
End Control
Control RegisterLoginButton Inherits PushButton
ControlInstance RegisterLoginButton Inherits PushButton
EventHandler Sub Action()
Dim b As Boolean = CheckEnable.Value
if ServiceManagementModuleMBS.LoginItemSetEnabled("de.monkeybreadsoftware.xojo.examples.helper", b) then
MsgBox "OK"
else
MsgBox "Failed."
end if
End EventHandler
End Control
Control CheckEnable Inherits CheckBox
ControlInstance CheckEnable Inherits CheckBox
End Control
Control RegisterButton Inherits PushButton
ControlInstance RegisterButton Inherits PushButton
EventHandler Sub Action()
Dim b As Boolean = CheckUpdate.Value
if ServiceManagementModuleMBS.RegisterHelperApp("Helper.app", b) then
MsgBox "OK"
else
MsgBox "Failed."
end if
End EventHandler
End Control
Control CheckButton Inherits PushButton
ControlInstance CheckButton Inherits PushButton
EventHandler Sub Action()
If ServiceManagementModuleMBS.LoginItemRunning("de.monkeybreadsoftware.xojo.examples.helper") Then
MsgBox "Running"
else
MsgBox "Not running."
end if
End EventHandler
End Control
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
Sign
End Sign
End Project
See also:
- /MacCloud/Sandbox Safe LoginItems Helper App/Build
- /MacCloud/Sandbox Safe LoginItems Helper App/Helper
Download this example: Main.zip
The items on this page are in the following plugins: MBS MacCloud Plugin.