Why Font.Assign In SimpleGraph?

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Why Font.Assign In SimpleGraph?

Postby elias » December 22nd, 2005, 1:38 pm

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...
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain

Postby Kambiz » December 22nd, 2005, 1:48 pm

The property setter of Font simply calls Assign method. So, why I don't do that myself? :)
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby elias » December 22nd, 2005, 2:54 pm

Aaah
..
OK
Thanks
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 1 guest

cron