Computer Science Canada

How to create a dropdown list

Author:  mrtdl [ 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.

Author:  Tony [ 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

Author:  mrtdl [ 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...

Author:  Tony [ 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...

Author:  Raknarg [ 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...

Author:  HRI [ 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.


: