Computer Science Canada 5 buttons with text in them |
Author: | chroncile [ Wed Dec 03, 2008 7:03 pm ] |
Post subject: | 5 buttons with text in them |
I don't know how to do this and it's due tomorrow. This is what it says: Quote: Create a screen using pixel graphics that displays 5 boxes, in 5 different colours. Within each box you should have words to indicate what will appear when you click on that box. E.g. OVAL, CIRCLE, STAR MAPLE LEAF. Ask the user to click on a box. Once the user clicks on a box you should clear the screen and draw a picture of the shape that they clicked on. I have no idea how to do that, please someone help me. Our teacher expects us to learn by our selves. How are we suppose to do that without anyone teaching us?! ![]() |
Author: | corriep [ Wed Dec 03, 2008 7:16 pm ] |
Post subject: | RE:5 buttons with text in them |
Try searching Turing's Help (F10) look up Mouse.Where, and whatdotcolor and if you have no idea how to do the text and boxes, look up drawfillbox and Font.Draw thats all I can give you without giving you the answer |
Author: | chroncile [ Wed Dec 03, 2008 7:55 pm ] | ||||
Post subject: | RE:5 buttons with text in them | ||||
This is the example the teacher gave us:
I'm getting an idea from this, but how can I put in text in the box without have the box's colour erased? Mod Edit: Remember to use syntax tags! ![]()
|
Author: | A.J [ Wed Dec 03, 2008 9:29 pm ] | ||
Post subject: | Re: 5 buttons with text in them | ||
hmmmmmmmmmm...look up GUI buttons in turing. but since ur teacher's example didn't use GUI.....oh well here's an example of sample buttons:
if u need any help, please ask me (as I have a tendency to be unclear ![]() |
Author: | chroncile [ Wed Dec 03, 2008 9:33 pm ] |
Post subject: | RE:5 buttons with text in them |
It doesn't work, it says " 'SetColor' is not on the export list of 'GUI' " |
Author: | corriep [ Thu Dec 04, 2008 7:30 am ] |
Post subject: | RE:5 buttons with text in them |
try setting colorback to whatever the box color is and use the locate command |
Author: | Parker [ Thu Dec 04, 2008 8:23 am ] | ||
Post subject: | Re: 5 buttons with text in them | ||
Just did this quick...
Hope that will help, just make a few more buttons doing somewhat the same thing. |
Author: | Insectoid [ Thu Dec 04, 2008 12:15 pm ] |
Post subject: | RE:5 buttons with text in them |
Yeah, it is easier and looks nicer to make your own buttons. If you know how to make a button work, it is far easier. You know exactly what is going on with it, while with the GUI you need to look up all the functions that never work the way you want them to, and it looks like crap to boot! |