
-----------------------------------
Warrick
Sun Mar 20, 2005 10:13 pm

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 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.

-----------------------------------
Bacchus
Sun Mar 20, 2005 10:16 pm


-----------------------------------
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")

-----------------------------------
Tony
Sun Mar 20, 2005 10:17 pm


-----------------------------------

loop
   getch(c)
   View.Update
..

type of thing? :?

-----------------------------------
Warrick
Sun Mar 20, 2005 10:21 pm


-----------------------------------
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")

Yes! Thank you! You're a life saver. ^^

loop 
   getch(c) 
   View.Update
   ...

That still wouldn't work if "nooffscreenonly" isn't in place. :?

-----------------------------------
Cervantes
Sun Mar 20, 2005 10:26 pm


-----------------------------------
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")

Yes! Thank you! You're a life saver. ^^

loop 
   getch(c) 
   View.Update
   ...

That still wouldn't work if "nooffscreenonly" isn't in place. :?
Bloody double negatives. Okay, that means: That still wouldn't work if "offscreenonly" is in place.  Heh, yes it would.

-----------------------------------
[Gandalf]
Mon Mar 21, 2005 8:34 pm


-----------------------------------
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")

Yes! Thank you! You're a life saver. ^^

loop 
   getch(c) 
   View.Update
   ...

That still wouldn't work if "nooffscreenonly" isn't in place. :?
Bloody double negatives. Okay, that means: That still wouldn't work if "offscreenonly" is in place.  Heh, yes it would.
what? wouldn't this mean ""This still would work if "nooffscreenonly" is in place""?  :roll: Now I'm confused  :lol:
