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

Username:   Password: 
 RegisterRegister   
 How do you make a Menu???
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
hello123




PostPosted: Sun Jan 13, 2008 11:02 am   Post subject: How do you make a Menu???

i don't know how to make a menu
Sponsor
Sponsor
Sponsor
sponsor
Sean




PostPosted: Sun Jan 13, 2008 11:08 am   Post subject: Re: How do you make a Menu???

First off, what type of Menu are you trying to make?

Gui or MouseWhere?

Second off, please be more specific in original post, and have some code to atleast let us know you attempted.
hello123




PostPosted: Sun Jan 13, 2008 11:08 am   Post subject: RE:How do you make a Menu???

could someone give an example??? Please
hello123




PostPosted: Sun Jan 13, 2008 11:41 am   Post subject: RE:How do you make a Menu???

thats the problem, i have no clue at all
Sean




PostPosted: Sun Jan 13, 2008 11:42 am   Post subject: Re: How do you make a Menu???

Well first off, attempt at making your own, not using GUI, post the code and we can help you.
hello123




PostPosted: Sun Jan 13, 2008 11:54 am   Post subject: RE:How do you make a Menu???

startButton := GUI.CreateButton (320, 300, 100, "Start Game", information)
how do i declare information, if i use, it won't work, if i use a proceudre, i dont get wat im suppose to put inside the procedure
hello123




PostPosted: Sun Jan 13, 2008 11:55 am   Post subject: RE:How do you make a Menu???

**var**
Sean




PostPosted: Sun Jan 13, 2008 11:58 am   Post subject: Re: How do you make a Menu???

As I suggested Do not use Gui. And for your procedure, do not use "" , use it properly.

If you want the button to work properly, then your procedure must have what you want inside of it, so it may work. if you want your button to say hello, then the procedure would be greetings, and inside the procedure you would have...

Turing:

proc Greetings
  put "Hello"
end Greetings
Greetings


Like so.. Then your button would have the procedure name in place where you put the "Start Game" and would do the procedure that it was assigned to.
Sponsor
Sponsor
Sponsor
sponsor
hello123




PostPosted: Sun Jan 13, 2008 12:15 pm   Post subject: RE:How do you make a Menu???

so your sugestin that i make a button without using GUI???
hello123




PostPosted: Sun Jan 13, 2008 12:21 pm   Post subject: RE:How do you make a Menu???

the use of GUI is required
Sean




PostPosted: Sun Jan 13, 2008 12:29 pm   Post subject: Re: How do you make a Menu???

Shakin Cookie has an example of GUI, look at that and then learn from the proper way to incopporate GUI, then you'll have the required stuff to make your Menu.
shakin cookie




PostPosted: Sun Jan 13, 2008 12:35 pm   Post subject: RE:How do you make a Menu???

for gui, you must declare the procedure before the button... otherwise it will return an error message.

Turing:


proc hi
put"hi!"
end hi

proc menu

var button:int:=GUI.CreateButton(x,y,w,"bla",hi)
loop
exit when GUI.ProcessEvent
end loop
end menu
menu
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  [ 12 Posts ]
Jump to:   


Style:  
Search: