PDA

View Full Version : dropdown list


JokerMartini
06-01-2011, 01:14 AM
How do i search a dropdown list for a variable and if true make it the selected dropdown list item.


dropdownlist ddlView "" width:110 items:("Donut","Nut","Popsicle","Candy") pos:[50,28]

on rollout open do
(
if isvalidnode Popsicle do (ddlView.selection Popsicle)
)

lo
06-01-2011, 08:26 AM
What does isValidNode have to do with a list of strings?

Do you mean it should search for a scene node that has the name of the strings in the list?

floopyb
06-01-2011, 10:08 AM
would this help?
ddlView.selection = (finditem ddlView.items "Popsicle")

CGTalk Moderation
06-01-2011, 10:08 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.