Platforms to show: All Mac Windows Linux Cross-Platform

/MacClassic/WakeNotifier with Events


Required plugins for this example: MBS MacClassic Plugin

You find this example project in your Plugins Download as a Xojo project file within the examples folder: /MacClassic/WakeNotifier with Events

This example is the version from Sun, 17th Mar 2012.

Project "WakeNotifier with Events.xojo_binary_project"
Class Window1 Inherits Window
Control List Inherits Listbox
ControlInstance List Inherits Listbox
End Control
EventHandler Sub Open() wn = new Sleeping if wn.valid then list.addrow "We are running..." wn.callEvents=true else list.addrow "Power Manager not installed." end if End EventHandler
Property wn As Sleeping
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 xStaticText Inherits Label
Sub set(v as variant) dim s as string s=v if s<>text then text=s end if End Sub
End Class
Class Sleeping Inherits WakeNotifierMBS
EventHandler Sub SleepDemand() window1.list.addrow "SleepDemand" End EventHandler
EventHandler Function SleepRequest() As boolean window1.list.addrow "SleepRequest" End EventHandler
EventHandler Sub SleepRevoke() window1.list.addrow "SleepRevoke" End EventHandler
EventHandler Sub WakeUp() window1.list.addrow "Wakeup" End EventHandler
End Class
Class App Inherits Application
End Class
End Project

See also:

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


The biggest plugin in space...