Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 148
  • Last Modified:

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.
0
sorentop
Asked:
sorentop
1 Solution
 
nnbbb09Commented:
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.
0
 
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 :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now