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 Problem mit TPicture als Property (https://www.delphipraxis.net/36840-problem-mit-tpicture-als-property.html)

Helmi 26. Dez 2004 22:09


Problem mit TPicture als Property
 
Hallo,

ich möchte in einer Komponente eine Property aufbauen, mit der man ein Picture auswählen kann.

unter "Type" hab ich folgendes drin:
Code:
  private
    { Private-Deklarationen }
    FCustomFlagPicture   : TPicture;

    procedure SetCustomFlagPicture(Value: TPicture);

  published
    { Published-Deklarationen }
    // Properties:
    property CustomFlagIcon: TPicture read FCustomFlagPicture write SetCustomFlagPicture;
Die Procedure schaut so aus:
Code:
procedure TTrayIcon.SetCustomFlagPicture(Value: TPicture);
begin
  //Wird aufgerufen, wenn sich die Variable "FCustomFlagPicture" ändert
  FCustomFlagPicture.Assign(Value);
end;
Mein Problem ist, dass ich zwar im OI noch ohne Probleme z. b. ein Icon auswählen kann. Aber sobald ich sage "Laden" dann bekomm ich folgende Fehlermeldung:
Zitat:

---------------------------
Fehler
---------------------------
Zugriffsverletzung bei Adresse 40005F4A in Modul 'rtl70.bpl'. Lesen von Adresse 30303043.
---------------------------
OK
---------------------------
Was muss ich tun, damit ich ein Picture auswählen kann und dass ich diese als Variable (FCustomFlagPicture) habe?

mfg
Helmi

Helmi 26. Dez 2004 22:29

Re: Problem mit TPicture als Property
 
Sorry,

hat sich erledigt!

mfg
Helmi


Alle Zeitangaben in WEZ +1. Es ist jetzt 17:48 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