Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 get is not displaying
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Warrick




PostPosted: 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
Sponsor
sponsor
Bacchus




PostPosted: 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




PostPosted: Sun Mar 20, 2005 10:17 pm   Post subject: (No subject)

Turing:

loop
   getch(c)
   View.Update
..

type of thing? Confused
Warrick




PostPosted: Sun Mar 20, 2005 10:21 pm   Post subject: (No subject)

Bacchus wrote:
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")


Yes! Thank you! You're a life saver. ^^

Tony wrote:
code:
loop
   getch(c)
   View.Update
   ...


That still wouldn't work if "nooffscreenonly" isn't in place. Confused
Cervantes




PostPosted: Sun Mar 20, 2005 10:26 pm   Post subject: (No subject)

Warrick wrote:
Bacchus wrote:
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")


Yes! Thank you! You're a life saver. ^^

Tony wrote:
code:
loop
   getch(c)
   View.Update
   ...


That still wouldn't work if "nooffscreenonly" isn't in place. Confused

Bloody double negatives. Okay, that means: That still wouldn't work if "offscreenonly" is in place. Heh, yes it would.
[Gandalf]




PostPosted: Mon Mar 21, 2005 8:34 pm   Post subject: (No subject)

Cervantes wrote:
Warrick wrote:
Bacchus wrote:
if you need to input something just take off offscreenonly
View.Set("nooffscreenonly")


Yes! Thank you! You're a life saver. ^^

Tony wrote:
code:
loop
   getch(c)
   View.Update
   ...


That still wouldn't work if "nooffscreenonly" isn't in place. Confused

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""? Rolling Eyes Now I'm confused Laughing
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: