
-----------------------------------
mrtdl
Fri May 13, 2011 9:19 am

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.

-----------------------------------
Tony
Fri May 13, 2011 10:40 am

RE:How to create a dropdown list
-----------------------------------
You can draw stuff with the Draw module, and handle mouse controls with [tdoc]Mouse.Where[/tdoc]

-----------------------------------
mrtdl
Tue May 17, 2011 1:03 pm

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
Tue May 17, 2011 2:12 pm

RE:How to create a dropdown list
-----------------------------------
[tdoc]GUI.CreateMenu[/tdoc] would be an example of a working drop-down list...

-----------------------------------
Raknarg
Tue May 17, 2011 5:13 pm

RE:How to create a dropdown list
-----------------------------------
I think he  meant an example that didn't require GUIs...

-----------------------------------
HRI
Tue May 17, 2011 5:51 pm

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.
