Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 GUI Submenus
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
corriep




PostPosted: 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
Sponsor
Sponsor
Sponsor
sponsor
andrew.




PostPosted: 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).
SNIPERDUDE




PostPosted: 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.
S_Grimm




PostPosted: 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.
corriep




PostPosted: 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
gitoxa




PostPosted: 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.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 6 Posts ]
Jump to:   


Style:  
Search: