Occurs before selecting component.
property OnCanSelect: TComponentEvent;
Write an OnCanSelect event handler to provide custom action. You may forbid selecting this component.
The Sender parameter is the object whose event handler is called.
The Component parameter is the component that is being selected
The Accept parameter determines whether a component is allowed to select.