I finally figured out the winapi.notification notification xml templates, there are buttons, action, you can specify a handler when you click on them. Here is an example from the site delphi

procedure TNotificationsForm.NotificationCenter1ReceiveLocalNotification(Sender: TObject; ANotification: TNotification); begin mmLog.Lines.Add('Notification received: ' + ANotification.Name); //Shows the name of the notification handled. end; 

But this is a reaction to any press, even on a button, even on the notification itself.

Tell me how to handle more specifically for what they clicked?

even as you can subscribe to the event through

 LAccepted := TAcceptedEventHandler.Create; LToast.add_Activated(LAccepted); 

found it here https://stackoverflow.com/questions/32105337/how-to-add-a-text-node-to-a-toast-notification , but I can not find the type TAcceptedEventHandler on which type to connect to announce this type? Searched by source, found nothing ....

  • What you found on SO is from the sorts of the old presentation (2015) Marco Cantu Windows 10 VCL app with the WinRT API - zed
  • is it all outdated? How then to make processing? - Alex Lizenberg
  • I do not know if it is outdated or not. To get started, put yourself the WinRT headers as written in the article (if you haven’t already), and look for the necessary classes and interfaces there. - zed
  • I launch getit manager, enter winRT in search - nothing is found - Alex Lizenberg
  • In general, I found in the code where the subscription to the event takes place, the message is sent to the Navarnik there, but how can I see the variable with the debug? there I put a Tmassage type variable on it and there () everything ... I usually got used, for example, on python or js, the whole structure of the object shows that where and how you immediately see where the information you need lies - Alex Lizenberg

0