Skip to main content
Known Participant
November 30, 2009
Question

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.

This topic has been closed for replies.

1 reply

Adobe Employee
December 2, 2009

I was able to reproduce the problem on with the sample code you provided -- we'll take a look at this. Thanks for sending it in!

- robin

Known Participant
December 2, 2009

Thank you for the reply. I created a bug report: https://bugs.adobe.com/jira/browse/SDK-24493

I hope its not too hard to fix, because I need it for a product desperately

Adobe Employee
December 2, 2009

Thanks for the report.  In general this one is fixable.

Note that TLF also handles the double click event and interprets that to select a word.  You're going to end up with a editable TextField with one word selected.

Richard