I'm working on a Flex 3 app for keyboarding instruction. In many of the drills
I need to work with the tab character.
Flash support for working with tabs in text controls is poor. For example, it
was a work-around just to get an MX TextArea to accept tabs (by capturing
FocusEvent.KEY_FOCUS_CHANGE events and manually inserting a tab). I realize TLF
might be better, but we've committed to Flex 3 for this project.
I'm using an embedded monospace font in the TextArea. When I enter a tab ('\t')
in the TextArea, I want it to be rendered five characters wide. Flash seems to
render tabs about two and half characters wide by default.
I've tried inserting an embedded image via htmlText, using tab stops, inserting
five spaces instead of an actual tab (a nightmare to stay on top of), and even
creating my own custom glyph in an embedded font, all to no avail.
How can I change the width of tab characters in a TextArea? Any work-arounds?