masda
05-13-2009, 01:09 PM
Hello
I have a small problem with maxscript (2009) and I just dont know what is wrong :)
Eventhandlers of UI controls can be call by e.g.:
"someButton.pressed()".
But if I want to call the "selected" eventhandler of a listbox by:
"someListBox.selected()" or
"someListBox.selected 1"
maxscript throws an error that it needs a function but gets a string of the selected item.
But
"someListBox.selected"
should return the items name... the other code should call the eventhandler.
How can i call the "selected"-Event of a listBox?
Thanks
I have a small problem with maxscript (2009) and I just dont know what is wrong :)
Eventhandlers of UI controls can be call by e.g.:
"someButton.pressed()".
But if I want to call the "selected" eventhandler of a listbox by:
"someListBox.selected()" or
"someListBox.selected 1"
maxscript throws an error that it needs a function but gets a string of the selected item.
But
"someListBox.selected"
should return the items name... the other code should call the eventhandler.
How can i call the "selected"-Event of a listBox?
Thanks
