Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi IconData.szTip < Variabel wie ? (https://www.delphipraxis.net/39364-icondata-sztip-variabel-wie.html)

Gast 1. Feb 2005 17:05

Re: IconData.szTip < Variabel wie ?
 
Habe selber an den beiden Teilen noch nicht wirklich viel geschrieben ;)

Außerdem nicht wundern .. meine Variabel X heoßt jetzt Uptime.

Sprint 1. Feb 2005 17:09

Re: IconData.szTip < Variabel wie ?
 
Delphi-Quellcode:
procedure TForm1.FormCreate(Sender: TObject);
var
  S: String;
begin

  S := UpTime;
  FillChar(IconData, SizeOf(TNotifyIconData), 0);

  with IconData do
  begin
    cbSize := SizeOf(TNotifyIconData);
    Wnd := Self.Handle;
    // uID := 100; brauchst du nicht
    uFlags := NIF_MESSAGE or NIF_ICON or NIF_TIP;
    uCallbackMessage := WM_USER + 20; // warum setzt du keine Konstante?
    hIcon := Application.Icon.Handle;
    if Length(S) < 64 then
      Move(S[1], szTip, Length(S))
    else
      Move(S[1], szTip, 63);
  end;

  Shell_NotifyIcon(NIM_ADD, @IconData);

end;

Gast 1. Feb 2005 17:25

Re: IconData.szTip < Variabel wie ?
 
Danke Schön es geht :))

Grüße!
Tigerhead

perle 2. Feb 2005 08:57

Re: IconData.szTip < Variabel wie ?
 
Delphi-Quellcode:
  StrPLCopy(IconData.szTip,X,255);
sollte auch gehen.


Alle Zeitangaben in WEZ +1. Es ist jetzt 03:02 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz