Manipulating spark TextInput text through TextOperationEvent
Hi,
I'm trying to make a component that "format as you type" based on spark TextInput.
I'm using TextOperationEvent.CHANGING and the available operations (InsertOperation, DeleteOperation, and so on...)
My problem is that I can manipulate the inserted or delted text but *not* the text already set in the control. And more important, I want to avoid a textChange event
or valueCommit since I don't want validation occurs until I finish the editing.
I'm looking for a way to manipulate all text and I think the event is right (CHANGING), but I would need some example tp see how I can manipulate more text that the one inserted or delete
in the that operation. Instructions in the class says I can manipulate and delete more text, but I was trying and digging in TLF and I can't see the way.
Hope some one could help me and let me know where I can look or some sample to try.
Thanks in advance!
Carlos
