For my project, I used a ListboxItem with an image. So I looked for on the Wiki and I saw this page which explains how to do with a checkbox.
I try to change it to use an image instead of the checkbox, but I have an error when I use the SetProperty method.
So, the code in my looknfeel is globally the same, except I add this :
Code: Select all
<ImagerySection name="image">
<ImageryComponent>
<Area>
<Dim type="TopEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="LeftEdge">
<AbsoluteDim value="0" />
</Dim>
<Dim type="RightEdge">
<AbsoluteDim value="64" />
</Dim>
<Dim type="BottomEdge">
<AbsoluteDim value="64" />
</Dim>
</Area>
<ImageProperty name="Image" />
<VertFormat type="CentreAligned" />
<HorzFormat type="LeftAligned" />
</ImageryComponent>
</ImagerySection>
And in my C++ code, I tried to use the Image property like this :
Code: Select all
item->setProperty("Image", "set:TaharezLook image:ClientBrush");
But I got an error : (Error) CEGUI::UnknownObjectException in file c:\...\ceguipropertyset.cpp(124) : There is no Property named 'Image' available in the set.
I don't see the error. Could you help me ?
Thanks