Board index » cppbuilder » Ho to prvent controls from being dropped at designtime ?

Ho to prvent controls from being dropped at designtime ?


2007-11-01 08:22:55 AM
cppbuilder28
Hi there
I have a component derived from TCustomControl
I would like to make it so that my component can
NOT be the parent of any controls except the ones
it creates it self.
Is that possible, if so how ??
Thanks In advance
Asger
 
 

Re:Ho to prvent controls from being dropped at designtime ?

Quote
I would like to make it so that my component can
NOT be the parent of any controls except the ones
it creates it self.
Have a look at TControlStyle. Specifically csAcceptsControls. This doesn't
prohibit runtime assignments but it does eliminate design-time assignments.
Clayton
 

Re:Ho to prvent controls from being dropped at designtime ?

Hi Clayton
In article <472920d8$ XXXX@XXXXX.COM >
XXXX@XXXXX.COM
Clayton Arends says:
Quote
>I would like to make it so that my component can
>NOT be the parent of any controls except the ones
>it creates it self.

Have a look at TControlStyle. Specifically csAcceptsControls. This doesn't
prohibit runtime assignments but it does eliminate design-time assignments.
Thanks, that is also the main reason for my
request, so I am satisfied..
Kind regards
Asger
 

{smallsort}