TSimpleGraph- loading settings

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

TSimpleGraph- loading settings

Postby elias » February 9th, 2006, 1:53 pm

To Kambiz (or whoever that knows):

When I load an object from a stream, I notice that after creating, it runs the published properties; first fixing fields and second running the SetProcedures. Is it right?

Sometimes, I want a field be restored, not the SetProcedure however... Because I don`t want SetProcedure code running.

Could you explain how it works and how to change it? Or any documentation about it?
elias
Senior Member
Senior Member
 
Posts: 90
Joined: November 8th, 2005, 12:09 pm
Location: Galicia, Spain

Postby Kambiz » February 9th, 2006, 2:17 pm

Delphi always calls property settter procedure because the read value for sure is not the same as default property value, otherwise it was not stored.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm

Postby elias » February 10th, 2006, 2:52 pm

OKKK!
And I realized one mistake:
I thought that first of all the field was fixed; that was where I wrong: is the setter that fix the field!
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