Problem with the enabled property
- November 30, 2009
- 1 reply
- 441 views
Hi,
I want to implement an text editor where the user can create, move and resize text fields. So I took a RichEditableTextField and integrated it in the skin of the component that handles the drag and drop etc.
The text should be editable if the user double clicks on the text field.
But it seems, that there is a problem with that property: after the text field is deselected (enabled is set to false) and selected again (enabled = true) the text field is editable but the selection highlight and the caret are not drawn.
I created a test project to demonstrate it to you (its appended).
To reproduce the bug double click on the text, write something, and click on the white space to deselect it.
Then double click again on the text, move the mouse cursor to the white space and back on the text (another strange thing) to change it to the text edit cursor. Then you can enter text again, but if you try to select to select some text the selection highlight is not drawn. If you change the browser window and go back to the application the highlight is drawn correctly.
This behaviour appears also if the editable property is set instead of enabled. So it seems that there is an internal boolean, that is not set if the property changes.
How can I fix that problem?
Thanks in advance.
