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 ....