K
K
Konstantin2018-11-01 14:11:59
Delphi
Konstantin, 2018-11-01 14:11:59

Delphi notifications on windows 10 how to respond to a click?

I figured out how to create notifications on the new delphi in the windows notification center.
But the task arose of how to respond to user actions with these notifications, for example, clicking on a notification or on buttons ... in general, if I have 2 buttons there, then there are 3 options - a person clicked on the notification itself or on button 1 or on button 2
on the site delphi, here is an example:

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

But here it is not clear how to determine why there was a click?
I've searched all over the internet...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Zolotov, 2018-11-01
@SZolotov

Read the official documentation from Microsoft

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question