[Gambas-user] Stopping keyboard events

ron ronstk at ...239...
Tue Mar 16 18:48:34 CET 2004


On Tuesday 16 March 2004 17:34, Eilert wrote:
> Hi,
>
> is it possible to examine keyboard events for a control (text area) and
> to kill them if necessary?
>
> I can examine them but do not find a way of killing them if needed. To
> let you have the background: A typewriting trainings program is to have
> the backspace key and any direction keys disabled while all letter keys
> may pass, enabling the user only to type in letters at the end of the text.
>
> In the TextArea1_KeyPress() I have
>
> 	if key.Code = key.BackSpace then
>
> and what do I do now?
>
>
> Regards
> Rolf
>
Hi 

May be this wil help

IF Key.Code = Key.BackSpace THEN STOP EVENT

Ron




More information about the User mailing list