[Gambas-user] "locking" of a textbox

Hans-Martin Bundeshund bundeshund at ...467...
Sun Jul 4 11:18:20 CEST 2004


Am Sonntag, 4. Juli 2004 11:07 schrieb lordheavy:
> Is there any way to "lock" a textbox with only numeric input ?

Try this:

PUBLIC SUB TextBox_KeyPress()  

  'message.Info(Str(key.code))  'with this unmarked you can easy see the codes
  IF key.code < 48 OR key.Code > 57 THEN
    message.Info("Please enter figures only!")
  ENDIF
  

END

>
> like QLineEdit with QValidator ?

I don't know this  :(

>
> Thanks !

HTH

>
> Lordheavy
HM




More information about the User mailing list