Stijn,
Ik gebruik TNLDTrayIcon v2 en als ik PopupBalloon() aanroep dan wordt de tijd die je ingeeft als laatste parameter "slecht" gebruikt. Wat ik daarmee wil zeggen is: als je bv. 10 ingeeft dan verwacht ik dat de ballon 10 seconden blijft staan en dan opnieuw verbergt.
Wat heb ik als code ingesteld, zet een TNLDTrayyIcon, een TButton en een TEdit op een form:
Code:
procedure TForm1.NLDTrayIcon1BalloonHide(Sender:TObject);
begin
caption:=caption+(' ,BalloonHide @ ' + timetostr(now));
end;
procedure TForm1.NLDTrayIcon1BalloonShow(Sender:TObject);
begin
caption:=('BalloonShow @ ' + timetostr(now));
end;
procedure TForm1.Button1Click(Sender:TObject);
begin
NldTrayIcon1.popupballoon('Dit is de titel',
'Dit is de caption', bitinfo, strtoint(edit1.text));
end;
Wat ik ook vond op MSDN was dit:
uTimeout
Union with
uVersion. The timeout value, in milliseconds, for a balloon ToolTip. The system enforces minimum and maximum timeout values.
uTimeout values that are too large are set to the maximum value and values that are too small default to the minimum value. The system minimum and maximum timeout values are currently set at 10 seconds and 30 seconds, respectively. See the remarks for further discussion of
uTimeout.
Hieruit maak ik op dat een ballon minstens 10 seconden en maximum 30 seconden blijft staan
Zoals je ziet in onderstaande tekening geef ik aan dat hij 10 seconden moet blijven staan, maar dat doet hij dus niet. Hij blijft véél langer staan, tenzij ik hem vroegtijdig uit zijn lijden verlos
Bookmarks