"Input" position

Blitz3D Forums/Blitz3D Beginners Area/"Input" position

gnipper(Posted 2003) [#1]
Hi there again!

Im having a few problems with the input command. Is it possible to tell the comp where on the screen to ask for the input (i.e. something like - position cursor). At the moment im using the text command to print the prompt text (at given coordinates) and then using input but it defaults the cursor to the top left of the open screen! Any help?

Im using graphics full screen mode btw!

Cheers All


Gauge(Posted 2003) [#2]
Locate is the command your looking for. you'd do:
note locate works by pixels, text works by char lenght.
try this:
"Graphics 800,600,16,1
Locate 100,100
a$=Input$("What would you like?")
Print "You typed: "+a$
While Not KeyHit(1)
Wend
End



gnipper(Posted 2003) [#3]
thats the one!

Cheers Gauge


JazzieB(Posted 2003) [#4]
Gauge, if by 'text' you mean the command Text, then that works in pixels as well. Nothing in Blitz works by character/console positioning.


Sir Gak(Posted 2003) [#5]
You can position by character, so to speak, if you use the fontwidth() and/or fontheight() commands for the string you want to print. Yes, they work by pixels, but will measure out hoy many pixels you should go to accommodate the string you want to print in the current active font.