Delphi-PRAXiS
Seite 3 von 3     123   

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 Eigene Komponente ??? (https://www.delphipraxis.net/75404-eigene-komponente.html)

Bernd29bln 19. Aug 2006 21:54

Re: Eigene Komponente ???
 
okay hab vielen dank. :thumb:

jbg 19. Aug 2006 22:46

Re: Eigene Komponente ???
 
Zitat:

Zitat von Meflin
property ImageList: TImageList read fImageList write fImageList;

Die Komponente sollte jetzt noch eine FreeNotification für die ImageList einrichten, da es sonst ziemlich stark kracht, wenn jemand die ImageList vom Formular nimmt.

Meflin 19. Aug 2006 23:10

Re: Eigene Komponente ???
 
Ja schon klar. Aber darum ging es ja hier nicht :stupid: so in etwa:
Delphi-Quellcode:
protected
  procedure Notification(AComponent: TComponent; Operation: TOperation); override;

procedure TFoo.Notification(AComponent: TComponent; Operation: TOperation);
begin
  inherited Notification(AComponent, Operation);
  if (Operation = opRemove) and (fImageList <> nil) and (AComponent = ImageList) then
    ImageList := nil;
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:11 Uhr.
Seite 3 von 3     123   

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 by Thomas Breitkreuz