Component Properties default

I have a boolean property which I want to be true when I place the component on a form. I could assing true to the property in the constructor, but if I then at designtime make the property false, the property is made true when I run the app.
Who is Participating?
nnbbb09Connect With a Mentor Commented:
If the property is published then the Delphi streaming mechanism will ensure that the correct value is set based on the properties you specify in the Object Inspector.
sorentopAuthor Commented:
Hmm yearh you're right.
I tried to follow what happends in the constuctor and it temporary gets a true value, just as you said :)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.