[Gambas-user] Dealing with keycodes

Daniel Campos dcamposf at ...626...
Sun Nov 27 20:24:48 CET 2005


Use the STOP EVENT Keyword in the KeyPress event.

Regards,

D. Campos

2005/11/27, S Krupa Shankar <shankarkrupa at ...43...>:
> Hello all,
>
> I am a new gambas user, living in Chennai, India.
>
> I like gambas very much, almost a boon to me to
> program in Linux.
>
> I have a question to start with. Since key.code
> property is read only, would it be possible to disable
> the user's input in the textbox/textarea by any other
> way?
>
> For example, in Visual Basic, if we expect only
> numbers and the user types 'a'... we can check for the
> keyascii value. If it is not in the 48-63 range, we
> can set keyascii=0. So now the 'a' wont go to the
> textbox.
>
> Is there something we can do like that in Gambas? Or
> we shall deal with it in the textbox's change event?
>
>
>
> __________________________________
> Start your day with Yahoo! - Make it your home page!
> http://www.yahoo.com/r/hs
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
> for problems?  Stop!  Download the new AJAX search engine that makes
> searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
> http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>




More information about the User mailing list