Add / Remove TRectangle Tools during RunTime
Posted: Mon Sep 11, 2006 6:52 am
Please help me... Its urgent
We are developing a VCL Component.
In the constructor I'm creating a Rectangle tool like:
EditTextTool : TRectangleTool;
self.EditTextTool := TRectangleTool.Create(self);
While dragging the component from the pallete(during design time), the constructor is being called and the tool was created.
When we run the application, the constructor is called again, and one more tool was created.
How can I find any existing tools and remove them, before creating new ones...???
We are developing a VCL Component.
In the constructor I'm creating a Rectangle tool like:
EditTextTool : TRectangleTool;
self.EditTextTool := TRectangleTool.Create(self);
While dragging the component from the pallete(during design time), the constructor is being called and the tool was created.
When we run the application, the constructor is called again, and one more tool was created.
How can I find any existing tools and remove them, before creating new ones...???