The designer's OnDestroyComponent event will fire when a component is freed. You could show a message when the component is about to be freed. "Locking" of a component has not been added by RB. It is on our to do list. I remember a post, maybe about a year ago, where someone described how they implemented locking by letting the component get freed, and then recreated the deleted component. I'm guessing they either loaded it from the template or kept a cache of component property settings when the SelectChanged event fired on the designer. Try searching our newsgroups for related posts, as I can't seem to find it when I search in OE. Perhaps searching with Tamarack would find it.
Comments
You could show a message when the component is about to be freed. "Locking"
of a component has not been added by RB. It is on our to do list. I
remember a post, maybe about a year ago, where someone described how they
implemented locking by letting the component get freed, and then recreated
the deleted component. I'm guessing they either loaded it from the template
or kept a cache of component property settings when the SelectChanged event
fired on the designer. Try searching our newsgroups for related posts, as I
can't seem to find it when I search in OE. Perhaps searching with Tamarack
would find it.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com