Xojo Conferences
XDCMay2019MiamiUSA

Platforms to show: All Mac Windows Linux Cross-Platform

WinNotificationMBS class

Type Topic Plugin Version macOS Windows Linux Console & Web iOS
class Notifications MBS Win Plugin 12.1 No Yes No Yes, Windows only No
Function: This is a class to send broadcast message to all windows applications listening for this notification.
Notes:
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.

Feedback, Comments & Corrections

  • 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
  • 10 methods
  • 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 which use this class:


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


WinLocalizationMBS   -   WinPointerEventsMBS




Links
MBS Xojo Plugins