[solved] setState became _setState


29-04-2012 18:17:37


I've just switched from MyGUI 3.0 to MyGUI 3.2 and I've noticed you renamed the Button::setState() method into _setState() and made it protected. That's a problem to me because I use it.

Is there a better alternative to setState("highlighted") and setState("pushed") ? Or do I have to make my own button class to access this method ?

Thanks in advance.


30-04-2012 20:09:40

I think you want to use: widget->_setWidgetState(state);


02-05-2012 00:38:27

Thank you scrawl, that works.
I just hope this method will remain public in the next versions.