From: oleg d. <be...@be...> - 2003-08-31 09:22:51
|
On Sun, Aug 31, 2003 at 01:42:47AM +0700, oleg dashevskii wrote: Finally solved the problem. I just forgot to enable the widget :-) self.enable and voila! > Well, I'm creating my own widget and it apart from anything else must > respond to the keyboard. > > As far as I could understand, in this case the widget should tell the > top window it can receive focus, by redefining the canFocus virtual method. > That's OK in C++, but when I'm trying to define it in my Ruby code, it > (as well as canFocus?, but they are just the same, as seen from > aliases.rb) is never called. So the focus is never gained and > SEL_KEYPRESS messages don't come. > > To solve this problem I put the setFocus() call to the SEL_ENTER handler > and it works, but now accelerator keys (defined in the top window menu) > don't. > > Either this or that, but I want both of them :-) > > -- > be9 > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Fxruby-users mailing list > Fxr...@li... > https://lists.sourceforge.net/lists/listinfo/fxruby-users -- be9 |