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

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

cziter15pl
Just popping in
Just popping in
Posts: 4
Joined: Thu Aug 23, 2012 22:22

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

Postby cziter15pl » Sat Sep 29, 2012 12:26

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

super999
Just popping in
Just popping in
Posts: 2
Joined: Mon Mar 26, 2012 14:40

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

Postby super999 » Tue Oct 09, 2012 02:42

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 }


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests