PDA

View Full Version : ComboBox.SetSelected does not trigger "On Select" Actions


SonG0han
01-24-2008, 07:54 AM
The right entry is selected if you use ComboBox.SetSelected but no code from On Select is executed. :(

Is this a bug? Or does anyone know a workaround to fire the On Select Script if you use the ComboBox.SetSelected action?


I have some description text in the DATA associated to each entry and want to display it On Select in a paragraph. But this does only work if you click on the combobox and select an item. But I want to display the infotext of the first entry when the combobox is displayed. (it appears if you enter / in an input field)

Worm
01-24-2008, 08:20 AM
First thought is to use a function in the globals instead. Pass the paramters to it from the On Selected. This way you can call that same function from anywhere you want, passing the parameters needed.

Darryl
01-24-2008, 09:37 AM
My feeling is that this is a bug, so we'll look into that. Sorry for the inconvenience. It appears that Worms solution is the best for now.

REF: 17162

SonG0han
01-24-2008, 09:47 AM
Ok, I have added the needed parts of the code from "On Select" to the other object and it works now.

Thanks for the suggestion. I think I should use more functions and less code-snippets over and over again. ;)