About horizontal scroll bar in ListBox

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

User avatar
jasom_liu
Just popping in
Just popping in
Posts: 14
Joined: Mon Mar 07, 2005 08:00

About horizontal scroll bar in ListBox

Postby jasom_liu » Wed Mar 30, 2005 07:33

Hi,Crazy Eddie.
I meet a little trouble. When I want to view a long string in the ListBox(I am creating a little chat room),the horizontal scrollbar will auto view so that it can view the string in one line. Can I auto display it in two lines or more and do not display the horizontal scroll bar ? How to set the properties ?
Thanks. :roll:

User avatar
CrazyEddie
CEGUI Project Lead
Posts: 6760
Joined: Wed Jan 12, 2005 12:06
Location: England
Contact:

Re: About horizontal scroll bar in ListBox

Postby CrazyEddie » Wed Mar 30, 2005 08:53

Hi,

You basically need a custom ListboxItem which splits the text (either using wordwrap formatting, or by inserting newline chars) at appropriate positions. I do not provide this at the moment unfortunately, but it is possible to implement.

CE.

Scorch
Not too shy to talk
Not too shy to talk
Posts: 21
Joined: Mon Feb 13, 2006 07:05
Location: Las Vegas, NV

Postby Scorch » Wed May 03, 2006 00:11

Was doing a couple searches through the forums and found this entry, I also would find it usefull to have a wordwrapping listboxitem, especially if it re-wrapped when the listbox changed size.

On my list of todo's but not right now.

Has anyone else allready done work on this that could be easily enough reused?

Scorch.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: Bing [Bot] and 3 guests