Update RectangleTool to support edit annotation.
Posted: Wed Oct 07, 2009 2:10 pm
Good morning,
I am using the RectangleTool to put annotations on charts. I set the AllowEdit property to true so users can edit the text in the annotation. I would like to save the updated RectangleTool text. Can you add events that are fired when the rectangletool goes into edit mode and when it exits edit mode.
Without that, it is difficult for me to know when the user has finished editing the text.
I noticed that the rectangletool goes into drag mode whenever the user presses the escape key to exit editing. This doesn't follow normal user interface patterns. Could you remove that behavior or make it configurable? I think dragging should be independant of editing.
Finally, it seems the only way to exit edit mode is by pressing escape. Normally, escape would cancel edit mode and revert to the original text. Also, normally, clicking anywhere outside the rectangletool would exit edit mode. Can you make clicking outside the rectangletool end edit mode and pressing escape cancel edit mode? I tried implementing this myself using rectangletool.EndEdit, but can't implement this 100% correctly without being able to detect if a rectangletool is in edit mode or not.
Best regards
Len
I am using the RectangleTool to put annotations on charts. I set the AllowEdit property to true so users can edit the text in the annotation. I would like to save the updated RectangleTool text. Can you add events that are fired when the rectangletool goes into edit mode and when it exits edit mode.
Without that, it is difficult for me to know when the user has finished editing the text.
I noticed that the rectangletool goes into drag mode whenever the user presses the escape key to exit editing. This doesn't follow normal user interface patterns. Could you remove that behavior or make it configurable? I think dragging should be independant of editing.
Finally, it seems the only way to exit edit mode is by pressing escape. Normally, escape would cancel edit mode and revert to the original text. Also, normally, clicking anywhere outside the rectangletool would exit edit mode. Can you make clicking outside the rectangletool end edit mode and pressing escape cancel edit mode? I tried implementing this myself using rectangletool.EndEdit, but can't implement this 100% correctly without being able to detect if a rectangletool is in edit mode or not.
Best regards
Len