[Gambas-user] Some Captured, Some Not
Benoit Minisini
gambas at ...1...
Sun Jan 8 23:34:32 CET 2006
On Sunday 08 January 2006 23:07, A Person wrote:
> Good Day All . . .
>
> One of my earlier programs captured KeyPress events such as Home, End,
> and the arrow keys such as:
>
> . . .
> PUBLIC SUB ???_KeyPress()
>
> ' home key
> IF Key.Code = 4112 then
> do something
> END IF
>
> END
> . . .
>
> I recompiled it in 1.0.13 and now the Home, End, Delete and the Page
> buttons do not even get to visit the KeyPress event. A break point on
> the first line never gets tripped. It is like I pressed nothing. I have
> tried to capture as Key.Home and 4112 but nothing works.
>
> The arrow keys work. The alpha characters work. The numeric characters
> work. Some do and some don't.
>
> What changed? What am I doing wrong?
>
> Anyone help?
>
> Thanks
>
> Paul
>
No idea - Too few information!
Can you send your project to me, so that I can see what you did exactly?
And always use Key constants, not numeric ones. As the value of key may change
without notice...
Regards,
--
Benoit Minisini
More information about the User
mailing list