It should be

Font : TFont read FFont write SetFont

where SetFont is

SetFont(Value : TFont);
begin
 FFont.Assign(Value)
end;

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Richard R
Sent: Friday, December 16, 2005 3:30 PM
To: 'Delphi-Talk Discussion List'
Subject: font property problem


Hello, I have a design time component derived from TComponent. It has a
TFont property written like this

property Font: TFont read FFont write FFont;
in the constructor it is created FFont:= TFont.Create;
and freed in the destructor FFont.Free;

When I set it using the font's popup window and click save, it causes a AV
at address 40005997 in module "rtl60.bpl" read of address 63647420. This
doesnt happen if I set the drop down properties. This is the only component
it happens in. Any ideas?
__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to