I'm working in UI 1.8 for compatibility reasons, but if there's something obvious in later versions, let me know.
I'm a bit green with the Widget Factory, and trying to figure something out regarding options.
(Simplified for the sake of argument...) Let's say I've got a widget that has two options-- "width" and "alignment". Changing either of these options makes the widget recalculate and redraw, but both options are likely to be set at the same time, in which case it would be best to set all options and only redraw once.
Unless I'm mistaken, _setOption is called for each option being changed, individually and with no context of what else is being changed at the same time. From the documentation I've read, _setOptions is internal and should not be poked-at. Is there a best-practice way to detect and handle multiple-option changes to minimize the number of redraws and recalculations I'll need to do?