Links
EControl Form Designer Pro
TzCustomFormDesigner.OnCanDelete Event

Occurs before deleting selected component.

property OnCanDelete: TComponentEvent;

Write an OnCanDelete event handler to provide custom action. You may forbid deleting for example. 

 

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

The Component parameter is the component that is being deleted 

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

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