Graphical Input ? (Equivalent of Blitz3D Input)

BlitzMax Forums/BlitzMax Beginners Area/Graphical Input ? (Equivalent of Blitz3D Input)

Hi !

I tried the two functions...
And I have a Problem...

See, an exemple in B3D :

Graphics 800,600,32,2

While Not KeyHit(1)
	Cls
	Color 255,0,0
	Rect 10,10,100,100
	Locate 200,200
	Color 255,255,255
	name$=Input$("What is your name?")
	Write "Hello there, " + name$ + "!" 
	Flip
	Wend
WaitKey


You can see there are a Red Rect and a Input

Now, the blitzmax equivalent :

Graphics 800,600,0

While Not KeyHit(KEY_ESCAPE)
	Cls
	SetColor 255,0,0
	DrawRect 10,10,90,90
	SetColor 255,255,255
	name$=InputText$("What is your name?",200,200)
	DrawText "Hello there, " + name$ + "!",220,220 
	Flip
	Wend
WaitKey


Almost the same thing happen, except there is NO red rect...
Simply because InputText perform a Repeat...Until with Cls and Flip...

I tried the DynamicInput but the key detection is very random whene there are many things in the loop...
Realy a borring problem :(

So... Can someone help me ?

Thanks a lot

McFox