[Fxruby-users] Re: Using TEXTFIELD_REAL and connect()
Status: Inactive
Brought to you by:
lyle
From: <tku...@so...> - 2004-02-20 20:42:53
|
I found the right answer to my problem, thanks to Lyle's documentation at http://www.fxruby.org/doc/api/. I was catching the wrong event. What I had to do was catch the SEL_COMMAND and not SEL_KEYPRESS events. What a newbie I am. Anyway, it works wonderful now. The textfield acts just as you would expect when given TEXTFIELD_REAL, and SEL_COMMAND of course grabs "enter", which is exactly what I wanted. Tom |