Alex Fenton
9/16/2006 9:45:00 AM
Hi
Kuang Dong wrote:
> ..
> evt_text(TEXTCTRL_ID){
> puts self.get_value
> }
> ..
> When I input "Hello",
....
> When I select "ello",and input "i"
> output:
> H
> Hi
I don't see this behaviour. If I type in 'Hello', then select 'ello' and overtype with 'i', get_value in the event handler returns 'Hi'.
> How can I ignore the event outputs "H"?
Are you looking for event.veto?
evt_text(the_id) { | event | event.veto }
alex