Page 1 of 1

How to make a border / set image for CEGUI::ListboxItem

Posted: Sat Sep 29, 2012 12:26
by cziter15pl
Hello everyone,

Normally, when using MultiColumnList, we have:
Image

I want to make a border for all list items in my roomlist to make it looks like:
Image

Any idea how to do that ?
I was trying to find something like setNormalBrushImage, but without any results.
I found only setSelectionBrushImage, but it works for Selected item only.

Regards,
Chris

Re: How to make a border / set image for CEGUI::ListboxItem

Posted: Tue Oct 09, 2012 02:42
by super999
my solution : modify the multicolumlist 's Render method draw a image like 1X1 or 2X2 pure colour image { white or specie image }.

collect the item height and width infomation, then draw this picure serval time to make the border.

also you find the other thing the custom window in the columlist is not auto hide or show . if you used custom window maybe you need to modify this in the render method.:)

it works in my game project { ios , cegui }