unit Unit7;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, System.Notification, Vcl.StdCtrls;
type
TForm7 = class(TForm)
Button1 : TButton;
procedure Button1Click(Sender : TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form7 : TForm7;
implementation
{$R *.dfm}
procedure TForm7.Button1Click(Sender : TObject);
VAR
NotificationCenter : TNotificationCenter;
MyNotification : TNotification;
begin
NotificationCenter := TNotificationCenter.Create(nil);
MyNotification := NotificationCenter.CreateNotification;
try
MyNotification.Name := '이름';
MyNotification.Title := '제목';
MyNotification.AlertBody := '내용';
NotificationCenter.PresentNotification(MyNotification);
finally
MyNotification.DisposeOf;
NotificationCenter.DisposeOf;
end;
end;
end.
'DELPHI(델파이)' 카테고리의 다른 글
[델파이 - DELPHI] HTTPS 서버 사용시 다른 포트 바인딩 주의점 (0) | 2020.11.24 |
---|---|
[델파이 - DELPHI] INDY HTTP, TCP TLS 1.2 사용 (0) | 2020.11.24 |
[델파이 - DELPHI] DLL 호출바 (0) | 2020.11.19 |
[델파이 - DELPHI] DLL 만들기 (0) | 2020.11.19 |
Window Tail (0) | 2020.03.25 |