shape locations
-
A user add different kinds of shapes on a panel depending on where he clicked on the panel and a shape is display. I am calling addeShape() function when a user click on the panel. Everything is ok up to this point. But now lets say a shaped is selected and now a user want to added another shape on the top of the existing shape the user has to add shape first on the panel by clicking on the panel, the shape appears and then the user has to drag on the location he wants it to be. What i want to do is even if an existing shape is selected and a new shape is begin added on the top of the existing shape I want to be able to add on the top of it. Rather than clicking first on the panel and then drag on the desired location. How can i solve this puzzle. Any input will be highly appreciated. Thansk