
-----------------------------------
Da_Big_Ticket
Thu Nov 17, 2005 5:06 pm

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

-----------------------------------
Flikerator
Thu Nov 17, 2005 5:58 pm

Re: 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

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
Thu Nov 17, 2005 8:09 pm


-----------------------------------
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
Thu Nov 17, 2005 8:52 pm


-----------------------------------
This is it so far if anyone wants to take a look at the code

-----------------------------------
Da_Big_Ticket
Thu Nov 17, 2005 11:30 pm


-----------------------------------
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:

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
Sat Nov 19, 2005 1:00 pm


-----------------------------------
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?
