[Gambas-user] global variable
Fabien Bodard
abidoo.too at ...11...
Sat Jun 5 20:56:28 CEST 2004
Le vendredi 4 Juin 2004 07:15, Tim Hanschen a écrit :
> With this GlobaVars module that was a good idea.... but now another problem
> raised. First of all I want to explain in more detail what I want to do.
>
> I want to create an application which can be controlled via a touchscreen.
> I have several forms. One form is my "virtual keyboard". Whenever I have to
> enter text I call my virtual keyboard... I call the keyboard like this:
>
> DIM hNewForm AS Fkeyboard
> hNewForm = NEW Fkeyboard
> hNewForm.show
>
> The problem is that I can enter a text, in my global variable, but the
> called form will not "notice" that the value has changed. It would be fine
> if the called form stops and waits until a text is entered and then go
> on...
>
>
It look like an Qbasic app in console mode no ?
You can use a timer to scan the key board...
But you must to declare an envent like
public sub thistextbox_keypress()
end
in your form
and do
public sub Timer_timer()
print key.text
end
Fabien
More information about the User
mailing list