[Gambas-user] Keypress events

Jacky jscops at ...11...
Wed Apr 25 18:32:49 CEST 2007


Le mercredi 25 avril 2007 15:28, Gareth Bult a écrit :
> Hi,
>
> I'm working with a gridview trying to catch the return key when pressed.
> I'm seeing a strange effect, when I first hit the table, my code works
> and the keypress event is activated.
>
> After the first keypress event, I don't then see any more until I click
> on the table, at which point I get the first keypress, then no more.
>
> It's as though after the first keypress event the gridview no longer has
> focus (!)
>
> Anyone any ideas ?
>
> tia
> Gareth.

Hi Gareth

Have you insert the stop event function in your program ?
*************************beginning of exemple********************
PUBLIC SUB Gridview_keypress()

SELECT CASE LAST.tag
CASE 1
sub1()
STOP EVENT

CASE 2
sub2()
STOP EVENT

END SELECT
END

**********************end of exemple****************************

Jacky





More information about the User mailing list