Recent

Author Topic: Display notifications  (Read 8262 times)

janhsh

  • New Member
  • *
  • Posts: 12
    • http://www.houbart.be
Display notifications
« on: August 31, 2018, 03:43:38 pm »
Hello,

Does anyone know how to display a notification in MS windows.
The notification must appear in the MS windows notification area

thank you in advance

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: Display notifications
« Reply #1 on: August 31, 2018, 04:42:28 pm »
Hello,

Does anyone know how to display a notification in MS windows.
The notification must appear in the MS windows notification area

thank you in advance
here is a sample from microsoft for C++ and C# that should get you started. As far as I know this is only available on windows8 and 10 It will not work on windows lower than 8 so you better link with the api dynamicaly to avoid crashes.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

Alexandr R

  • New Member
  • *
  • Posts: 24
Re: Display notifications
« Reply #2 on: April 07, 2020, 10:47:57 am »
THintWindow?

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: Display notifications
« Reply #3 on: April 07, 2020, 12:41:48 pm »
THintWindow?

Isn't this the small yellow hint box that pops up when the mouse is over a control?
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

zoltanleo

  • Sr. Member
  • ****
  • Posts: 486
Re: Display notifications
« Reply #4 on: April 07, 2020, 05:57:06 pm »
In my opinion, to solve the problem it’s enough to use TTrayIcon  :)
Win10 LTSC x64/Deb 11 amd64(gtk2/qt5)/Darwin Cocoa (Monterey):
Lazarus x32/x64 2.3(trunk); FPC 3.3.1 (trunk), FireBird 3.0.10; IBX by TonyW

Sorry for my bad English, I'm using translator ;)

 

TinyPortal © 2005-2018