Page 1 of 1

Why Font.Assign In SimpleGraph?

PostPosted: December 22nd, 2005, 1:38 pm
by elias
I have noticed that there's a sentence in TGraphObject.Create,

Code: Select all
SyncFontToParent;

That calls...
Code: Select all
Font.Assign(Owner.Font);

To copy Simplegraph.Font in the recently created GraphObject...
Why not...
Code: Select all
Font:=owner.Font;

?
I'm very interested in this issue...

PostPosted: December 22nd, 2005, 1:48 pm
by Kambiz
The property setter of Font simply calls Assign method. So, why I don't do that myself? :)

PostPosted: December 22nd, 2005, 2:54 pm
by elias
Aaah
..
OK
Thanks