PDA

View Full Version : Problem with listbox eventhandler call


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

CGTalk Moderation
05-13-2009, 01:09 PM
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.