Menu

#206 Combos and LUA

open
Meh
LUA (12)
5
2012-12-21
2012-10-14
Hugo
No

I have several combos which I change it's content thru LUA. When it's content change, the combo displays "no selection", but the value of the combo is still the value it had before the combo content changed. To display the value again in the combo is tricky, because I have to change the combo value to a different value and change it again to the desired value.

Discussion

  • rob wentz

    rob wentz - 2012-10-20

    been there. my fix was to use one script that sets all comboboxes in the panel to their max value, then a timer callback that sets them all to their min value 200ms later. I've got an "allMax" script and an "allMinCallback" which is called from the timer started in "allMax". "allMax" is assigned to the panel under "called after panel is loaded"

     
  • Hugo

    Hugo - 2012-10-25

    Thanks for your input, Rob.

    My problem is that this combo trigger other things and I don't want to change it's value several times only to display it correctly. And the combo can be changed at any moment, it's not a initialization problem.

     
MongoDB Logo MongoDB