problem with dropdownlist
hi! first excuse my English.
I am trying this.. one button print a string according item select on dropdownlist.
I used this:
_____________________________________________
rollout test "test"
(
dropdownlist list01 items:#("01","02", "03", "04")
button testPrint "print"
on testPrint pressed do
(
if LegsSolvers.items[1] selected do
(
print "Hello"
)
)
)
createdialog test
_____________________________________________
How I can do this?
Comments
Your dropdownlist is named
Your dropdownlist is named 'list01' not 'LegsSolvers', so if you with to print "hello" then the 1st item in the list is selected:
my recent MAXScripts RSS (archive here)