The colour about the selected brush image in ListboxTextItem
Posted: Wed May 18, 2011 07:10
In the Sample_Demo7 project, there is some code as following:
I set the selectionBrushImage successfully.But found that the colour is so blue.And my image is red.
How to keep the image’s colour?
Can you help me?
Thank you very much!!!!!
Code: Select all
// Sample sub-class for ListboxTextItem that auto-sets the selection brush
// image. This saves doing it manually every time in the code.
class MyListItem : public CEGUI::ListboxTextItem
{
public:
MyListItem(const CEGUI::String& text) : ListboxTextItem(text)
{
setSelectionBrushImage("Stage", "roundBack");
}
};
I set the selectionBrushImage successfully.But found that the colour is so blue.And my image is red.
How to keep the image’s colour?
Can you help me?
Thank you very much!!!!!