알짜게시판

[Delphi] 윈도우 알림센터에 메시지 출력하기

uses 에 System.Notification 을 추가합니다.

[code]
procedure SetNotification(Content: String);
var
  NotifiCenter: TNotificationCenter;
  Notification: TNotification;
begin
  NotifiCenter := TNotificationCenter.Create(nil);
  Notification := NotifiCenter.CreateNotification;
  try
    Notification.Name := Application.Title;
    Notification.Title := Application.MainForm.Caption;
    Notification.AlertBody := Content;

    NotifiCenter.PresentNotification(Notification);
  finally
    Notification.Free;
    NotifiCenter.Free;
  end;
end;

SetNotification('알람알람!!!');
[/code]

번호 제목 글쓴이 조회 날짜
223 [시크릿DNS] 프록시 혼합 사용 예제 1 249,144 08-07
222 [아이폰] HTTPS 감청 우회하기 101,129 11-01
221 [칼무리] 영역화면 크기 오류인 경우 94,334 12-12
220 [그누보드] CKEditor 5 플러그인 91,013 08-11
219 [그누보드] 사이드바 만들기 90,386 05-04
218 [MySQL] 업데이트 이후 에러 발생([ERROR] Incorrect definition of table … 90,373 12-08
217 [시크릿DNS] Kaspersky 백신 사용시 DNS 암호화 관련 4 83,156 01-04
216 [MySQL] MySQL, MariaDB 업데이트 72,761 11-24
215 ChangeDNS - DNS 서버를 손쉽게 변경합니다. 71,275 08-13
214 구글 크롬 탭검색 비활성화 71,015 12-04
213 [ReactNative] android directory was detected in the project. 64,670 07-20
212 killer 네트워크 이슈 팁 1 64,163 12-04
211 HTTPS/DNS 차단 쉽게 이해하기 61,526 08-16
210 [그누보드] Syntax Highlight 적용하기 60,553 05-19
209 [윈도우] 윈도우11 시작 메뉴 위치 변경(가운데, 왼쪽) 59,894 10-10
208 [Delphi] 중복 실행 방지 58,394 09-21
207 [리눅스] yum 에서 Thread died in Berkeley DB library 오류 58,102 09-18
206 [리눅스] 메일(Mail) 삭제/초기화 57,395 07-18
205 [리눅스] 로그 삭제 및 비우기(?) 56,851 09-09
204 [윈도우] node.js 와 npm 업데이트(업그레이드) 56,746 12-01
203 [그누보드] 아이디 대신 이메일로 회원 가입하기 56,627 02-02
202 Windows에 Rust 설치하기 56,512 10-05
201 [그누보드] 훅을 통한 글쓰기, 댓글 알림 56,232 05-26
200 [리눅스] VNSTAT 설치하기 55,497 09-17
199 [ReactNative] 캐시 초기화 하는 방법 55,444 12-27
열람 [Delphi] 윈도우 알림센터에 메시지 출력하기 54,533 06-20
197 [MySQL] unblock with 'mysqladmin flush-hosts' 에러 53,003 01-01
196 [Delphi] 파일 포맷 알아내기 50,848 09-08
195 [FTP] 500 Illegal PORT command. 46,694 09-03
194 [그누보드] 웹폰트 적용하기 45,482 08-13
193 [PHP] Imagek 를 이용한 썸네일 생성 45,305 08-26