Clearing GUI items
Author |
Message |
avsrule247
|
Posted: Sat Jan 13, 2007 9:46 am Post subject: Clearing GUI items |
|
|
Hey,
Basically I have a program with a menu at the top. When I start the program, you choose a menu option, and then it draws a few image buttons on the screen. When you click on a image button, I want all the buttons to clear. The problem is that if I use CLS then it clears the menu as well. How do I make it so when you click on a button, it only clears the buttons off the screen, and NOT the menu? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Cervantes
|
Posted: Sat Jan 13, 2007 10:38 am Post subject: RE:Clearing GUI items |
|
|
Why don't you just cls then redraw the menu? Alternatively, you could Draw.FillBox over everything but the menu. I'd recommend the first solution, however. It's more self consistent and will make things easier. |
|
|
|
|
|
n00b.skillz
|
Posted: Sat Jan 13, 2007 2:07 pm Post subject: Re: Clearing GUI items |
|
|
What are the parameters of Draw.FillBox? |
|
|
|
|
|
Ultrahex
|
Posted: Sat Jan 13, 2007 2:31 pm Post subject: Re: Clearing GUI items |
|
|
Draw.FillBox (x1, y1, x2, y2, Color : int)
are the parmenters, you can look this up in Turing Documentation
Its Under Help -> Turing Reference; Inside Turing
or by hitting F10 in Turing
Also close to all the commands you will ever need are posted there. |
|
|
|
|
|
n00b.skillz
|
Posted: Sat Jan 13, 2007 3:32 pm Post subject: Re: Clearing GUI items |
|
|
wow man thx alot now i dun't have to use that old book my teacher has on all of this:P |
|
|
|
|
|
|
|