[Gambas-user] Keys

Eilert eilert-sprachen at ...221...
Fri Jun 4 09:57:29 CEST 2004


Hi,

Devilyn schrieb:

>  How or What command do you use to know when a key is
> pressed.. or how can I identify if some one presses
> keys A to Z.. 

For TextArea1 it is TextArea1_KeyPress().

Within the event function, there is key.Code you can ask for the ASCII 
value of the key e. g. by using a select case thing. Then you have some 
key.XXX functions that return values for special keys (Backspace, Return 
etc.).

> Oh no I do not need to know how to use F1 - F12.. Just
> the keys A through Z if possible.

Well, uppercase A is 65, Z is 90, lowercase a is 97 and z is 122.

Try it out - does it help?

Rolf






More information about the User mailing list