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

Username:   Password: 
 RegisterRegister   
 Help with a textfield
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Da_Big_Ticket




PostPosted: Thu Nov 17, 2005 5:06 pm   Post subject: Help with a textfield

Apparantly fo my program my teacher wants textboxes made for inputs instead of a "fake textbox" made on photoshop.

I was wondering if someone could help me out with the coding, i want the boxes located at different points on the screen, not in a seperate window.

I tried the help manual but it isnt clear in what is required.

Thanks
Sponsor
Sponsor
Sponsor
sponsor
Flikerator




PostPosted: Thu Nov 17, 2005 5:58 pm   Post subject: Re: Help with a textfield

Da_Big_Ticket wrote:
Apparantly fo my program my teacher wants textboxes made for inputs instead of a "fake textbox" made on photoshop.

I was wondering if someone could help me out with the coding, i want the boxes located at different points on the screen, not in a seperate window.

I tried the help manual but it isnt clear in what is required.

Thanks


Well im not exactly sure what you want??? Turing has text box GUI, try using them, although not many people on Compsci use GUI with turing. Mind a screenshot of something similer to what you want?
Da_Big_Ticket




PostPosted: Thu Nov 17, 2005 8:09 pm   Post subject: (No subject)

i got the textboxes made, now i have a problem :

Once the user inputs a value i have turing do:

loop
exit when GUI.ProcessEvent
end loop

so that turing will realize the user has to inoput something. However when i made another textbox later in the program, i cannot enter anything in the textbox. can someone please contact me on aim or msn ? Im in a really desperate situation here
Da_Big_Ticket




PostPosted: Thu Nov 17, 2005 8:52 pm   Post subject: (No subject)

This is it so far if anyone wants to take a look at the code


Banklayout4.zip
 Description:

Download
 Filename:  Banklayout4.zip
 Filesize:  1.73 MB
 Downloaded:  109 Time(s)

Da_Big_Ticket




PostPosted: Thu Nov 17, 2005 11:30 pm   Post subject: (No subject)

I got the textboxes to be drawn and everything but theres something wrong when i try to store the input. The textbox is drawn, and the user types into the textbox but it doesnt store the value properly:

code:
mortgageTextField := GUI.CreateTextFieldFull (535, 197, 150, "",
            mortgageEntered, GUI.INDENT, 0, 0)
        GUI.SetActive (mortgageTextField)
        var mortgage : string := GUI.GetText (mortgageTextField)
        mortgage := GUI.GetText (mortgageTextField)
        loop
            exit when GUI.ProcessEvent or doQuit = false
        end loop


anyone know why it isnt working?[/code]
Da_Big_Ticket




PostPosted: Sat Nov 19, 2005 1:00 pm   Post subject: (No subject)

Ok, so i can get my textboxes to work now, however i do have some error proofing in my program. Basically if a condition isnt met it will return to the top of the loop and i want it so the user will re-enter info into the textfield. However this will not work because i have no idea how to reset the values from inside the textbox. Nothing in the manual i found was helpful. Any ideas?
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: