Occurs before creating icon for non-visual component.
property OnCreateIcon: TCreateIconEvent;
Write an OnCreateIcon event handler to provide custom action. You may forbid component icon creation, so that component will not be visible on the designed Target, but will be accessible in object inspector.
The Sender parameter is the object whose event handler is called.
The Component parameter is the component icon is being created for
The AllowCreate parameter determines whether an icon will be created.