Jump to content

Recommended Posts

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×