Help with a textfield
Author |
Message |
Da_Big_Ticket
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Flikerator
|
Posted: 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?
|
|
|
|
|
![](images/spacer.gif) |
Da_Big_Ticket
|
Posted: 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
|
|
|
|
|
![](images/spacer.gif) |
Da_Big_Ticket
|
Posted: 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
Description: |
|
![](http://compsci.ca/v3/pafiledb/images/icons/clip.gif) Download |
Filename: |
Banklayout4.zip |
Filesize: |
1.73 MB |
Downloaded: |
109 Time(s) |
|
|
|
|
|
![](images/spacer.gif) |
Da_Big_Ticket
|
Posted: 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]
|
|
|
|
|
![](images/spacer.gif) |
Da_Big_Ticket
|
Posted: 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?
|
|
|
|
|
![](images/spacer.gif) |
|
|