EControl Form Designer Pro
TzCustomFormDesigner.OnCanInsert Event

Occurs before inserting new component.

property OnCanInsert: TComponentEvent;

Write an OnCanInsert event handler to provide custom action. You may forbid inserting this new component. 


The Sender parameter is the object whose event handler is called. 

The Component parameter is the component that is being inserted 

The Accept parameter determines whether a component is allowed to insert.

Copyright (c) 2004 - 2011 EControl Ltd.. All rights reserved.
What do you think about this topic? Send feedback!