[Gambas-user] problem with Key.Code and form focus
zachsmith022 at ...626...
zachsmith022 at ...626...
Sat Dec 25 02:14:11 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: KeypressTest-0.0.5.tar.gz
Type: application/x-gzip
Size: 5451 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20101224/560e0bc7/attachment.bin>
More information about the User
mailing list