Platforms to show: All Mac Windows Linux Cross-Platform
WinNotificationMBS class
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
class | Notifications | MBS Win Plugin | 12.1 | ❌ No | ✅ Yes | ❌ No | ❌ No | Desktop, Console & Web |
If you have several applications, you can send notifications from one to another.
Windows Desktop application: Sending and receiving notification works.
Windows Console application: Sending works.
Windows Web application: Sending works. Receives notification of own application, but of others.
This class is useful to tell other instance of your application or other application about something. Like for example whether background process is done.
On Mac OS X you can use NSNotificationMBS class for similar functionality.
With 14.2 plugins we added possibility to listen for any windows broadcast message. Like for example for WM_TIMECHANGE.
- event GotNotification(Message as Integer, Name as string, Value1 as Integer, Value2 as Integer, byref Result as Integer, byref Handled as boolean)
- property WindowHandle as Integer
- 12 methods
- method Constructor
- method Constructor(Control as DesktopUIControl)
- method Constructor(control as RectControl)
- method Constructor(Window as DesktopWindow)
- method Constructor(Window as window)
- method Constructor(WindowHandle as Integer)
- method IsListeningFor(MessageID as Integer) as boolean
- method IsListeningFor(name as string) as boolean
- method ListenForMessage(MessageID as Integer) as boolean
- method ListenForMessage(name as string) as boolean
- method StopListeningForMessage(MessageID as Integer) as boolean
- method StopListeningForMessage(name as string) as boolean
- 3 shared methods
- shared method SendMessage(byref result as Integer, MessageID as Integer, Value1 as Integer = 0, Value2 as Integer = 0, TimeOut as Integer = 10) as boolean
- shared method SendMessage(name as string, Value1 as Integer = 0, Value2 as Integer = 0, TimeOut as Integer = 10) as boolean
- shared method SendMessageToWindow(WindowHandle as Integer, byref result as Integer, MessageID as Integer, Value1 as Integer = 0, Value2 as Integer = 0, TimeOut as Integer = 10) as boolean
This class has no sub classes.
Some examples using this class:
Blog Entries
- MonkeyBread Software Releases the MBS Xojo Plugins in version 17.1
- MBS Xojo Plugins, version 17.1pr2
- MDI Window Background in Xojo
- MBS Xojo / Real Studio Plugins, version 16.2pr1
- Tip of the day: Windows Notifications
- MBS Xojo / Real Studio Plugins, version 14.2pr9
- MBS Xojo / Real Studio Plugins, version 14.2pr5
- MonkeyBread Software releases MBS Real Studio plug-ins in version 12.1
- MBS Real Studio Plugins, version 12.1pr5
- Windows Notifications
Xojo Developer Magazine
Release notes
- Version 17.1
- Added new parameters for result to WinNotificationMBS.GotNotification.
- Improved WinNotificationMBS to handle events for painting better, so we draw background for MDI Window.
The items on this page are in the following plugins: MBS Win Plugin.
WinMouseFilterMBS - WinPhotoAcquireDeviceSelectionDialogMBS