Dear all,
i do have a problem with cutom components in C++ builder. Every component has a "ComponentState" property, which can be used to determine for example whether a method is called from within designer or at "runtime".
In our case we simply have the following if- clause:
if ( ! this->ComponentState.Contains( csDesigning ) )
But however, it seems that the ComponentState has a different value from one time to the other, when reaching this line of code in desinger. (I had added a prompt of the Property Value, and opening a form using the component several times ended up in showing different values each time i opened the form... )
Is there a known issue regarding this ComponentState property? Or is it possible that i am misinterpreting the way it can/should be used?
Thanks a lot for taking your time,
Ulrich