Platforms to show: All Mac Windows Linux Cross-Platform

Back to WinNotificationMBS class.

WinNotificationMBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The default constructor.

Creates an invisible dummy window to listen for notifications.

See also:

WinNotificationMBS.Constructor(Control as DesktopUIControl)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The control constructor.

Takes an existing Xojo control and intercepts messages going there to listen for the notifications you are interested for.
The class keeps a reference to the control to make sure it is not destroyed before this object is destroyed.

See also:

WinNotificationMBS.Constructor(control as RectControl)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 17.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The control constructor.

Takes an existing Xojo control and intercepts messages going there to listen for the notifications you are interested for.
The class keeps a reference to the control to make sure it is not destroyed before this object is destroyed.

See also:

WinNotificationMBS.Constructor(Window as DesktopWindow)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 22.0 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The window constructor.

Takes an existing Xojo Window and intercepts messages going there to listen for the notifications you are interested for.
If you listen for global notifications sent to all windows, we prefer the other constructor.
The class keeps a reference to the window to make sure it is not destroyed before this object is destroyed.

See also:

WinNotificationMBS.Constructor(Window as window)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 16.2 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The window constructor.

Takes an existing Xojo Window and intercepts messages going there to listen for the notifications you are interested for.
If you listen for global notifications sent to all windows, we prefer the other constructor.
The class keeps a reference to the window to make sure it is not destroyed before this object is destroyed.

See also:

WinNotificationMBS.Constructor(WindowHandle as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 17.1 ❌ No ✅ Yes ❌ No ❌ No Desktop only
The window constructor.

Takes an existing window and intercepts messages going there to listen for the notifications you are interested for.
If you listen for global notifications sent to all windows, we prefer the other constructor.
The class keeps a reference to the window to make sure it is not destroyed before this object is destroyed.

See also:

WinNotificationMBS.IsListeningFor(MessageID as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Whether this object is listening for the given message ID.
Example
dim w as new WinNotificationMBS

const WM_TIMECHANGE = &h001E
if w.ListenForMessage(WM_TIMECHANGE) then
MsgBox str(w.IsListeningFor(WM_TIMECHANGE))
end if

Returns true if we listen for this notification name or false if not.

See also:

WinNotificationMBS.IsListeningFor(name as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Whether this object is listening for the given notification.
Example
dim w as new WinNotificationMBS

if w.ListenForMessage("Hello") then
MsgBox str(w.IsListeningFor("Hello"))
end if

Returns true if we listen for this notification name or false if not.

See also:

WinNotificationMBS.ListenForMessage(MessageID as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Listens for given notification message id.

Returns true on success and false on failure.

See also:

Some examples using this method:

WinNotificationMBS.ListenForMessage(name as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Listens for given notification name.

Returns true on success and false on failure.

See also:

WinNotificationMBS.StopListeningForMessage(MessageID as Integer) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 14.2 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Stops listening for a given message ID.
Example
dim w as new WinNotificationMBS

const WM_TIMECHANGE = &h001E
if w.ListenForMessage(WM_TIMECHANGE) then
if w.StopListeningForMessage(WM_TIMECHANGE) then
MsgBox "OK"
end if
end if

See also:

Some examples using this method:

WinNotificationMBS.StopListeningForMessage(name as string) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Notifications MBS Win Plugin 12.1 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Stops listening for a given notification name.
Example
dim w as new WinNotificationMBS

if w.ListenForMessage("Hello") then
if w.StopListeningForMessage("Hello") then
MsgBox "OK"
end if
end if

See also:

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


The biggest plugin in space...