Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   GUI-Design mit VCL / FireMonkey / Common Controls (https://www.delphipraxis.net/18-gui-design-mit-vcl-firemonkey-common-controls/)
-   -   Delphi Form-Parent: self oder auch ein NotifyIconData?? (https://www.delphipraxis.net/29849-form-parent-self-oder-auch-ein-notifyicondata.html)

Helmi 15. Sep 2004 14:27


Form-Parent: self oder auch ein NotifyIconData??
 
Hallo,

ich hab folgendes Problem:

Ich erzeuge ein TrayIcon und eine Form; in dem Create-Event wird dann dem FForm ein Parent angegeben
Code:
  private
    IconData : TNotifyIconData;

    FForm   : TForm;

//........//
constructor TTrayIcon.Create(AOwner: TComponent);
begin
   inherited Create(AOwner);
  //Erzeugen des SysTrayIcon
  IconData.cbSize          := SizeOf(IconData);
  IconData.Wnd             := AllocateHWnd(HandleMessage);
  IconData.uId             := IconID;
  IconData.uFlags          := NIF_MESSAGE + NIF_ICON + NIF_TIP;
  IconData.uCallbackMessage := WM_TRAYNOTIFY;

  // Erzeugen der Hint-Form
  FBalloonTip := TForm.Create(self);

//...//

end;
self bezieht sich ja auf die Application (oder?? :gruebel:)

kann ich irgendwie anstatt Self das IconData angeben?

mfg
Helmi

Luckie 15. Sep 2004 14:56

Re: Form-Parent: self oder auch ein NotifyIconData??
 
Man braucht eigentlich nur die Hilfe lesen:
Zitat:

the identifier Self references the object in which the method is called


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:28 Uhr.

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