Recent

Author Topic: Display notifications  (Read 3758 times)

janhsh

  • New Member
  • *
  • Posts: 10
    • 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: 5365
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: 19
Re: Display notifications
« Reply #2 on: April 07, 2020, 10:47:57 am »
THintWindow?

jwdietrich

  • Hero Member
  • *****
  • Posts: 1116
    • 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.0.8 | FPC 3.0.4 | PPC, Intel, ARM | macOS, Windows, Linux

zoltanleo

  • Full Member
  • ***
  • Posts: 245
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  :)
Win7 Ultim x64/Deb 10 amd64 GTK3:
Lazarus x32/x64 2.1(r.63122); FPC 3.3.1 (r.44724), FB 3.0.5

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

 

TinyPortal © 2005-2018