Posted: Sun Mar 20, 2005 10:13 pm Post subject: get is not displaying
It is very odd. I've asked the user to input their name, but when they type it in, they can't see it appear immediately on the screen.
I haven't touched the background (colourback is default, GUI.SetBackgroundColour hasn't been used at all) and the text should be black [colour(black) before the get statement]
code:
loop
setscreen("cursor")
Font.Draw("Your name?",320,400,fontArial,black)
Font.Draw("Name: ",200,350,fontTimes,black)
View.Update %It's here to deal with code above that I haven't shown
locatexy(250,350)
colour(black)
get n : *
Pic.Draw(portrait,50,50,picCopy)
Font.Draw(n + ", is this correct?",200,100,fontTimes,black)
View.Update
locatexy(200,85)
get answer
exit when answer = "yes" or answer = "y"
end loop
I know that the program needs to View.Update after a character is put in (because I can type in a character, switch screens, and when I come back, the text will appear). However, I don't know how I can do this.
Sponsor Sponsor
Bacchus
Posted: Sun Mar 20, 2005 10:16 pm Post subject: (No subject)
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")
Tony
Posted: Sun Mar 20, 2005 10:17 pm Post subject: (No subject)