Tks, but now I have another problem, hehe. I want to delete this shape, but how can I make my program know what is the shape that I selected for example? In the wxShapeEvtHandler I use this command "shape=self.GetShape()" and with this I can use the shape for some functions, but in my program this method dont works. I have other way to discover what is the shape selected?
I hope I can be clear hehe.
Diego
Robin Dunn wrote:
···
Diego Prestes wrote:
Hi! I trying to use wxDiagram but I was seeing the documentation and I dont find any way to delete a shape. I just saw the DeleteAllShapes(), but I need to delete just one shape. Someone know if have one way to do this?
diagram.RemoveShape(shape)
shape.Destroy()