Author |
Message |
corriep
|
Posted: Sun Oct 12, 2008 1:39 pm Post subject: GUI Submenus |
|
|
Is there a way to put in sub menus in the GUI Menus
Like for example on Paint how it goes View>Zoom>Custom...
any help would be greatly appreciated
-Paul |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
andrew.
|
Posted: Sun Oct 12, 2008 2:32 pm Post subject: RE:GUI Submenus |
|
|
There is a way, because if you look at the GUI example bundled with Turing, it can have submenus. I haven't ever done it personally or researched it, but it is probably in the F10 help and also in the GUI tutorial (if there is one, I can't find it). |
|
|
|
|
![](images/spacer.gif) |
SNIPERDUDE
![](http://compsci.ca/v3/uploads/user_avatars/16932914504cbd0ad6ceaf1.jpg)
|
Posted: Sun Oct 12, 2008 2:56 pm Post subject: RE:GUI Submenus |
|
|
Ooh, I've always hated Turing's GUI.
The whole reason (mainly) I made my own GUI was because it's confusing and glitchy to use the built-in one. |
|
|
|
|
![](images/spacer.gif) |
S_Grimm
![](http://compsci.ca/v3/uploads/user_avatars/18926424384e6d86e5cf4d6.jpg)
|
Posted: Sun Oct 12, 2008 7:30 pm Post subject: RE:GUI Submenus |
|
|
the gui can do submenus. but in some cases, it is easier to use cls. |
|
|
|
|
![](images/spacer.gif) |
corriep
|
Posted: Sun Oct 12, 2008 7:37 pm Post subject: RE:GUI Submenus |
|
|
how would i go about doing this
Because I know how to Make a menu and put in menu items but what i am trying to do is put a Submenu in with the menu items
If some one could give me some example code that would be wonderful |
|
|
|
|
![](images/spacer.gif) |
gitoxa
![](http://compsci.ca/v3/uploads/user_avatars/125344263047f801d546bcb.jpg)
|
Posted: Sun Oct 12, 2008 9:52 pm Post subject: RE:GUI Submenus |
|
|
What our class did was use procedures as menus. We had more procedures as submenus.
You have a main menu, and from there you allow the user to choose from several options. If they choose a option that is another submenu, you just make the program call to another menu procedure. If you're not using global variables, you have to remember to pass everything you need to use to the next submenu. |
|
|
|
|
![](images/spacer.gif) |
|