Setting State of Widget

Kukanani

22-06-2011 18:06:42

Hello,

Before I upgraded MyGUI, I was using this code:

panel->setProperty("state", "highlighted");

panel is a MyGUI::Widget*.

Now that I have upgraded, MyGUI.log says:
10:13:41 | Core | Warning | Widget property 'state' not found [] | ..\..\MyGUIEngine\src\MyGUI_Widget.cpp | 1179

What do I need to do?

Altren

22-06-2011 19:27:32

Er, I looked through code and not found any "state" property in MyGUI 3.2 or 3.0. I guess you can use panel->_setWidgetState("highlighted")