[Gambas-user] problem with Key.Code and form focus
Benoît Minisini
gambas at ...1...
Wed Dec 29 01:12:51 CET 2010
> I'm having trouble having keypresses detected on a form. Sample code
> attached.
>
> qt
> FMain.border=true
> Works - "a" keypress hides button, next "a" keypress makes button
> visible
> FMain.border=false
> Fails - form can't receive focus
>
> GTK+
> FMain.border=true
> Fails - "a" keypress hides button1, subsequent "a" keypresses do
> nothing Works - if Quit button has focus
> FMain.border=false
> Fails - "a" keypress hides button1, subsequent "a" keypresses do
> nothing Works - if Quit button has focus
>
> It seems that Key.Code won't work at all unless a control is visible
> and/or has focus on the form - except for qt when the form has a border.
>
>
> gambas 3
> xfce
> qt 4.7.1
> gtk 1.2.10
OK, things should be better with revision #3405.
Regards,
--
Benoît Minisini
More information about the User
mailing list