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

Username:   Password: 
 RegisterRegister   
 Creating a Start Up menu
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Krocker




PostPosted: Tue Nov 02, 2010 4:30 pm   Post subject: Creating a Start Up menu

Hiya, i need some help. Is it possible to create a start up menu that has two buttons, each opens up a different link/program. My plans ar to create a start up menu for finance were u got two calculaters, one for interest and the other for taxes. some one help me create a menu and show me how to lik up different programs. thx note tht im am new to this so speak in english plz Laughing
Sponsor
Sponsor
Sponsor
sponsor
SNIPERDUDE




PostPosted: Tue Nov 02, 2010 5:17 pm   Post subject: RE:Creating a Start Up menu

Technically anything is possible to create in Turing. To get a start in what you will need to know I'd suggest checking out the Turing Walkthrough.
Krocker




PostPosted: Tue Nov 02, 2010 5:23 pm   Post subject: Re: RE:Creating a Start Up menu

Done, but i did not see what i had to do to make a menu. or at least what i thought were not part of what i need. lol. plz help me im getting fustrated. its for a class assignment for gr 10. so ya. plz help me.


SNIPERDUDE @ Tue Nov 02, 2010 5:17 pm wrote:
Technically anything is possible to create in Turing. To get a start in what you will need to know I'd suggest checking out the Turing Walkthrough.
SNIPERDUDE




PostPosted: Tue Nov 02, 2010 6:16 pm   Post subject: RE:Creating a Start Up menu

Not sure what type of menu you want exactly, but the GUI section is probably what you need. If it a Windows style start menu you want to replicate, the use of Mouse.Where and Pic.Draw together could replicate such a type of menu.
DanShadow




PostPosted: Wed Nov 03, 2010 3:08 pm   Post subject: RE:Creating a Start Up menu

If you want to create a menu, your going to need a do a few things:

- Create procedures to draw (a) the menu button, and (b) the menu itself

- Do 'mouse.where' if checks to determine if a user has clicked your menu button. If he/she has, then set a variable to tell your program to "display menu"

- your "display menu" variable is active, then do 'mouse.where' if checks to determine if a user has clicked an option in your menu. If he/she has, run the appropriate program

You may also want to add a 'mouse.where' ELSE statement to your 'mouse.where' if checks, so that if a user doesnt click any part of your menu, then menu variable "display menu" becomes inactive

So yes, it is absolutely possible!
If your new to Turing, i'd take a look at the following:

- variable declaration/usage
- if/elsif/else conditional statements
- mouse controls (button/mouse.where)
- graphics (drawbox, pic.draw, etc)

And if you wish to open external programs from your menu, look up "opening executables in Turing" on the forums.
If not, have a variable to tell your program which screen to draw (ex. screen:="menu", screen:="taxes", etc.)

Hope this helps start you off!
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  [ 5 Posts ]
Jump to:   


Style:  
Search: