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

Username:   Password: 
 RegisterRegister   
 How to create a dropdown list
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
mrtdl




PostPosted: Fri May 13, 2011 9:19 am   Post subject: How to create a dropdown list

How do you create a dropdown list/menu in turing without using GUI.CreateMenu.

This is often used in birthdays when registering for sites.
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Fri May 13, 2011 10:40 am   Post subject: RE:How to create a dropdown list

You can draw stuff with the Draw module, and handle mouse controls with Mouse.Where
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
mrtdl




PostPosted: Tue May 17, 2011 1:03 pm   Post subject: Re: How to create a dropdown list

Ok i get what your saying but I'm still new at turing and if anyone can, is there an example of a working drop-down list... I don't think it should be hard for more experienced programmers...
Tony




PostPosted: Tue May 17, 2011 2:12 pm   Post subject: RE:How to create a dropdown list

GUI.CreateMenu would be an example of a working drop-down list...
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Raknarg




PostPosted: Tue May 17, 2011 5:13 pm   Post subject: RE:How to create a dropdown list

I think he meant an example that didn't require GUIs...
HRI




PostPosted: Tue May 17, 2011 5:51 pm   Post subject: RE:How to create a dropdown list

Just do what Tony said first and run a series of checks similar to how the GUI works. Start by drawing the first box, and when it's moused over, draw more. If any of those is clicked on, run a procedure.

Very possible with Mouse.Where and/or Mouse.ButtonMoved/Mouse.ButtonWait.
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: