how to use ButtonImage(solved)

haibo19981984

24-05-2010 04:30:43

I'm confusing to ButtonImage.
There is not demo about ButtonImage.
In my minds,it should a button that user can define its image.
But I don't test triumphantly.
my layout as follows:

<Widget type="Button" skin="ButtonImage" position="10 280 98 18" layer="Back">
<Property key="Button_ImageResource" value="pic_CoreMessageIcon"/>
<Property key="Text_FontName" value="font_DejaVuSans.17"/>
</Widget>

I think my error should be in "Button_ImageResource".
Or some code is needed in my app.
Of cource,I can use Button instead of it.
But I still expect to come true ButtonImage.

my.name

24-05-2010 09:14:58

layout
http://dpaste.com/hold/198425/

resource
http://dpaste.com/hold/198424/

haibo19981984

24-05-2010 12:27:41

Thank you.My problem solved.

DragonM

21-06-2010 23:36:36

Content from dpaste preserved in the Ogre Wiki here: http://www.ogre3d.org/tikiwiki/MyGUI+use+ButtonImage

DM