Tiny text 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
MandM
Just popping in
Just popping in
Posts: 13
Joined: Mon Nov 21, 2005 11:17
Location: Egypt
Contact:

Tiny text in Listbox ?

Postby MandM » Sat Dec 24, 2005 22:42

In my Console window the text in the listbox isn't appearing at all. The console window is basicly a framewindow with a listbox and editbox. Text appears fine in the editbox when typing. But it refuses to appear in the listbox, for some reason it appears very small (if thats what it is).

Here is a screenshot to demonstrate the problem, you'll notice there is a vertical scrollbar which means there are several ListboxItems, if you focus you'll see some extremely tiny black stuff which i'm presuming are text.

Image

User avatar
MandM
Just popping in
Just popping in
Posts: 13
Joined: Mon Nov 21, 2005 11:17
Location: Egypt
Contact:

Re: Tiny text in Listbox ?

Postby MandM » Sun Dec 25, 2005 15:30

hmm, i tried switching to taharezlook and it worked. So can someone tell me why its not working for windowslook ? I'm using WindowsLook by default

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Tiny text in Listbox ?

Postby lindquist » Sun Dec 25, 2005 23:38

set the text colour.
what you're seeing is white text and some artifacts produced by something bad in the text rendering code.

User avatar
MandM
Just popping in
Just popping in
Posts: 13
Joined: Mon Nov 21, 2005 11:17
Location: Egypt
Contact:

Re: Tiny text in Listbox ?

Postby MandM » Mon Dec 26, 2005 04:17

I tried setting a million colours, nothing worked. And shouldn't the colour be chosen by default from the look. TaharezLook seems to know to choose white due to its black background, why not the same with WindowsLook ?

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Re: Tiny text in Listbox ?

Postby lindquist » Tue Dec 27, 2005 03:50

list items are not windows.
Taharez works because the default is white.

the best way to use them is to inherit from ListboxTextItem and set the default _you_ want in the constructor.

are you saying that the setting the colour did not solve the problem?

User avatar
MandM
Just popping in
Just popping in
Posts: 13
Joined: Mon Nov 21, 2005 11:17
Location: Egypt
Contact:

Re: Tiny text in Listbox ?

Postby MandM » Tue Dec 27, 2005 13:57

I was setting the Listbox Colour values from the layout file, didn't think they wouldn't work with the ListboxTextItem (why not btw !?) but I set it through code and it worked fine.


Also, i got another related problem. I was using

Code: Select all

<Property Name="Size" Value="w:1 h:0.3"/>

in my layout file to adjust the FrameWindow's size, the Listbox had a w:1 & h:0.85 . For some wierd reason now the listbox appears Over the FrameWindow's title bar, and the close button just appears floating in mid-air instead of being attached to the menu (since its now hidden by the listbox). any ideas why ? It used to work before as you can see in the screenshot.

User avatar
phoenix
Just popping in
Just popping in
Posts: 5
Joined: Thu Dec 29, 2005 11:42
Location: Germany

Re: Tiny text in Listbox ?

Postby phoenix » Sat Dec 31, 2005 00:23

MandM wrote:
I was setting the Listbox Colour values from the layout file, didn't think they wouldn't work with the ListboxTextItem (why not btw !?)


As lindquist said before, ListboxItems aren't windows, so you cannot assign properties to them via xml.


But, apart from that, I have a similar problem. At least I guess that it is somehow related to this thread's issue. As you can see from the image below, my ListboxItems are also truncated. Although I should note that I use a MultiColumnList here.

[img align=left]http://www.wyverex-cave.net/stuff/cegui.jpg[/img]

In this image I use the Marti skin but the results are the same for the Taharez skin.
Reducing the font size also has no effect.

Any ideas?

User avatar
phoenix
Just popping in
Just popping in
Posts: 5
Joined: Thu Dec 29, 2005 11:42
Location: Germany

Re: Tiny text in Listbox ?

Postby phoenix » Sat Dec 31, 2005 12:28

Ok, my problem was caused by the font I used. It seems to have a raised baseline or something like that. At least it has a vertical offset that isn't compensated by the GUI so it is truncated at the top.

@MandM:
Since the text is properly displayed in your editbox, your problem seems to have another cause than mine. At least you know that there's no problem with your font ;)


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 9 guests