Computer Class: GUI numpad for a machine
Author |
Message |
Shamoy
|
Posted: Tue Mar 11, 2014 6:11 pm Post subject: Computer Class: GUI numpad for a machine |
|
|
What is it you are trying to achieve?
I am trying to make a payment machine with a GUI numpad that enters a 16 digit code (4230394058299603) for a computer studies project.
I would like to add 1-9,0, backspace, clear, and return button.
If the number is incorrect, i want it to display the incorrect machine image and if the number is correct, i want it to display the correct machine image.
Please specify what version of Turing you are using
4.1.1
Description: |
|
Filesize: |
35.21 KB |
Viewed: |
77 Time(s) |
![Machine Incorrect.JPG](uploads/attachments/thumbs/t_machine_incorrect_194.jpg)
|
Description: |
|
Filesize: |
35.89 KB |
Viewed: |
74 Time(s) |
![Machine Correct.JPG](uploads/attachments/thumbs/t_machine_correct_177.jpg)
|
Description: |
|
Filesize: |
62.53 KB |
Viewed: |
76 Time(s) |
![Machine Layout.JPG](uploads/attachments/thumbs/t_machine_layout_131.jpg)
|
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Nathan4102
|
Posted: Tue Mar 11, 2014 6:34 pm Post subject: RE:Computer Class: GUI numpad for a machine |
|
|
Well have you tried anything yet? Show us your code so far and we'll let you know what you're doing wrong.
|
|
|
|
|
![](images/spacer.gif) |
Shamoy
|
Posted: Tue Mar 11, 2014 6:42 pm Post subject: Re: Computer Class: GUI numpad for a machine |
|
|
i dont know gui buttons code so it would be nice if someone here could show me an example or how the code workd
this is the code for my textbox
loop
text := GUI.GetText (textbox)
exit when GUI.ProcessEvent
exit when text = "4230394058299603"
end loop
|
|
|
|
|
![](images/spacer.gif) |
Shamoy
|
Posted: Wed Mar 12, 2014 3:30 pm Post subject: Re: Computer Class: GUI numpad for a machine |
|
|
bump
|
|
|
|
|
![](images/spacer.gif) |
GreatPumpkin
|
Posted: Sun Mar 16, 2014 7:40 pm Post subject: Re: Computer Class: GUI numpad for a machine |
|
|
Have you read The Turing Walkthrough? It covers the basics of everything you'd need for this project and more: http://compsci.ca/v3/viewtopic.php?t=8808. Lot's of examples are covered here, whenever you get stuck, check back to the walk though.
Also the Turing help file has information about every command, but the explanations aren't as easy to understand as those in the walk through: http://compsci.ca/holtsoft/doc/
|
|
|
|
|
![](images/spacer.gif) |
|
|