Computer Science Canada Is there a way I can change the button's colour? |
Author: | hosamhelal [ Sat Jan 15, 2005 2:16 pm ] |
Post subject: | Is there a way I can change the button's colour? |
For GUI Buttons; they are always gray, but is there a way i can change the colours to like....mmm...blue or green or purple. or any other colour? I am using V 4.05 Turing Please someone, thanks! |
Author: | [Gandalf] [ Sat Jan 15, 2005 3:17 pm ] |
Post subject: | |
var exitbutton : int := GUI.CreateButton(940,20,0,"Exit",leave) exitbutton is the variable for the button, 940 and 20 are the location of x and y. The number right after y (20 in this case) is the colour of the button. Exit is the label, and leave is the procedure that pressing the button will take you to. I hope thats a good enough explanation, I'm fairly new to Turing. If you need more help, type GUI.CreateButton and press "F9", that will take you to the help section for that command. oh, and in case you don't know - the colours in turing are: 0 black 1 blue 2 green 3 cyan 4 red 5 magenta 6 brown 7 white 8 dark gray 9 light blue 10 light green 11 light cyan 12 light red 13 light magenta 14 yellow 15 bright white |
Author: | TheXploder [ Sat Jan 15, 2005 3:38 pm ] | ||
Post subject: | |||
or, you could make your own buttons, I made a procedure that makes buttons like in VB and you can change the colour of them... its better to make your own buttons they don't take much to make, and its unlimited. This draws the button:
|
Author: | MysticVegeta [ Sat Jan 15, 2005 7:00 pm ] | ||
Post subject: | Re: Is there a way I can change the button's colour? | ||
hosamhelal wrote: For GUI Buttons; they are always gray, but is there a way i can change the colours to like....mmm...blue or green or purple. or any other colour? I am using V 4.05 Turing Please someone, thanks!
or maybe after declaring a button, you can go like this ->
|
Author: | hosamhelal [ Sat Jan 15, 2005 10:34 pm ] |
Post subject: | Doenst work! |
It says procedure set colour is not in the export list of 'GUI' |
Author: | Cervantes [ Sat Jan 15, 2005 11:26 pm ] | ||||
Post subject: | |||||
It's
not
|
Author: | hosamhelal [ Sun Jan 16, 2005 12:00 am ] |
Post subject: | |
Thanks |