Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

/Win/Windows Growl
Function:
Required plugins for this example: MBS Win Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Win/Windows Growl
This example is the version from Sun, 17th Mar 2012.
Project "Windows Growl.rbp"
Class App Inherits Application
Const kEditClear = "&Löschen"
Const kFileQuit = "Beenden"
Const kFileQuitShortcut = ""
End Class
Class Window1 Inherits Window
Control iServer Inherits TextField
ControlInstance iServer Inherits TextField
End Control
Control StaticText1 Inherits Label
ControlInstance StaticText1 Inherits Label
End Control
Control CheckLocal Inherits CheckBox
ControlInstance CheckLocal Inherits CheckBox
EventHandler Sub Action() iServer.Enabled = not me.Value End EventHandler
End Control
Control iPassword Inherits TextField
ControlInstance iPassword Inherits TextField
End Control
Control StaticText3 Inherits Label
ControlInstance StaticText3 Inherits Label
End Control
Control iApplication Inherits TextField
ControlInstance iApplication Inherits TextField
End Control
Control StaticText4 Inherits Label
ControlInstance StaticText4 Inherits Label
End Control
Control iNotification Inherits TextField
ControlInstance iNotification Inherits TextField
End Control
Control StaticText5 Inherits Label
ControlInstance StaticText5 Inherits Label
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Action() dim notifications(-1) as string Notifications.Append iNotification.Text if CheckLocal.Value then // local server g = new WindowsGrowlMBS(WindowsGrowlMBS.kGrowlUDP, iPassword.Text, iApplication.text, notifications) else g = new WindowsGrowlMBS(WindowsGrowlMBS.kGrowlUDP, iServer.text, iPassword.Text, iApplication.text, notifications) end if End EventHandler
End Control
Control iTheNotification Inherits TextField
ControlInstance iTheNotification Inherits TextField
End Control
Control StaticText6 Inherits Label
ControlInstance StaticText6 Inherits Label
End Control
Control PushButton2 Inherits PushButton
ControlInstance PushButton2 Inherits PushButton
EventHandler Sub Action() g.Notify(iTheNotification.text, iTitle.text, iMessage.text) End EventHandler
End Control
Control iTitle Inherits TextField
ControlInstance iTitle Inherits TextField
End Control
Control StaticText7 Inherits Label
ControlInstance StaticText7 Inherits Label
End Control
Control iMessage Inherits TextField
ControlInstance iMessage Inherits TextField
End Control
Control StaticText8 Inherits Label
ControlInstance StaticText8 Inherits Label
End Control
Control StaticText9 Inherits Label
ControlInstance StaticText9 Inherits Label
End Control
Control StaticText10 Inherits Label
ControlInstance StaticText10 Inherits Label
EventHandler Function MouseDown(X As Integer, Y As Integer) As Boolean Return true End EventHandler
EventHandler Sub MouseUp(X As Integer, Y As Integer) ShowURL "http://www.growlforwindows.com/" End EventHandler
End Control
EventHandler Sub Open() if TargetWin32 = false then MsgBox "This example works only on Windows." end if End EventHandler
Property g As WindowsGrowlMBS
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

See also:

Feedback, Comments & Corrections

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




Links
MBS Xojo PDF Plugins