From: Paul Lutus Date: 2006-09-16T04:46:07+09:00 Subject: Re: wxRuby2-preview: strange event of TextCtrl Kuang Dong wrote: > .. > evt_text(TEXTCTRL_ID){ > puts self.get_value > } > .. > > > When I input "Hello", > output: > H > He > Hel > Hell > Hello > > When I select "ello",and input "i" > output: > H > Hi > > How can I ignore the event outputs "H"? You have to choose which text events you want to act on. You are presently acting on each entered character. I *think* you want to act only on enter being pressed. -- Paul Lutus http://www.arachnoid.com