AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein GUI-Design mit VCL / FireMonkey / Common Controls Delphi Form-Parent: self oder auch ein NotifyIconData??
Thema durchsuchen
Ansicht
Themen-Optionen

Form-Parent: self oder auch ein NotifyIconData??

Ein Thema von Helmi · begonnen am 15. Sep 2004 · letzter Beitrag vom 15. Sep 2004
Antwort Antwort
Benutzerbild von Helmi
Helmi

Registriert seit: 29. Dez 2003
Ort: Erding, Republik Bayern
3.312 Beiträge
 
Delphi XE2 Professional
 
#1

Form-Parent: self oder auch ein NotifyIconData??

  Alt 15. Sep 2004, 14:27
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?? )

kann ich irgendwie anstatt Self das IconData angeben?

mfg
Helmi
  Mit Zitat antworten Zitat
Benutzerbild von Luckie
Luckie

Registriert seit: 29. Mai 2002
37.621 Beiträge
 
Delphi 2006 Professional
 
#2

Re: Form-Parent: self oder auch ein NotifyIconData??

  Alt 15. Sep 2004, 14:56
Man braucht eigentlich nur die Hilfe lesen:
Zitat:
the identifier Self references the object in which the method is called
Michael
Ein Teil meines Codes würde euch verunsichern.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:02 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