You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using wxNotificationMessages on MSW with MSWUseToasts() enabled (like the dialogs sample does), clicking the notification or letting it timeout will both result in wxEVT_NOTIFICATION_MESSAGE_CLICK being sent.
Expected vs observed behaviour:
It is expected that wxEVT_NOTIFICATION_MESSAGE_DISMISSED would be sent in case of timeout or explicitly dismissing the notification.
To Reproduce:
Start 'dialogs' sample on MSW.
Open User Notification Test Dialog.
Click 'Show'.
Observe that whatever you do – click or no click –, the status text will soon show "Notification was clicked".
But why?
It looks like regardless of what the user actually did or didn't do, the overload of Invoke taking IInspectable* gets called, and that one sends the click event. (IInspectable is the base class for IToast{Dismissed,Failed}EventArgs, so it makes some sense.) The debugger shows that the contents of the args object is actually an IToastDismissedEventArgs.
Platform and version information
wxWidgets version you use: master
wxWidgets port you use: wxMSW
OS and its version: Windows 10.0.19045.3996
The text was updated successfully, but these errors were encountered:
Bug description:
When using
wxNotificationMessage
s on MSW withMSWUseToasts()
enabled (like the dialogs sample does), clicking the notification or letting it timeout will both result inwxEVT_NOTIFICATION_MESSAGE_CLICK
being sent.Expected vs observed behaviour:
It is expected that
wxEVT_NOTIFICATION_MESSAGE_DISMISSED
would be sent in case of timeout or explicitly dismissing the notification.To Reproduce:
But why?
It looks like regardless of what the user actually did or didn't do, the overload of
Invoke
takingIInspectable*
gets called, and that one sends the click event. (IInspectable
is the base class forIToast{Dismissed,Failed}EventArgs
, so it makes some sense.) The debugger shows that the contents of theargs
object is actually anIToastDismissedEventArgs
.Platform and version information
The text was updated successfully, but these errors were encountered: