Problem with Tab Control buttons and Static Text

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
mouglue
Just popping in
Just popping in
Posts: 10
Joined: Mon Apr 04, 2005 22:36

Problem with Tab Control buttons and Static Text

Postby mouglue » Fri May 27, 2005 03:18

Hello,

I seem to be having an issue with the size of the tab control buttons. The height on them makes it so the bottom 1/3 of the text is cut off.

I have also noticed a simular issue with the static text box. This I can get around by setting the height bigger then it seems like it needs to be. But if I adjust it down there is always this "Large" gap above the letters. (I would say around 4-5 pixels.)

Any ideas?

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

Re: Problem with Tab Control buttons and Static Text

Postby CrazyEddie » Sun May 29, 2005 08:55

What glyphs do you have defined in your font?

It may be that your font contains glyphs with accents or what have you, and the extra space is required so the accents do not get cut off; a side effect is that when a line of text is rendered that does not contain any such glyphs, the text appears to be shifted downwards by a few pixels.

CE.

User avatar
mouglue
Just popping in
Just popping in
Posts: 10
Joined: Mon Apr 04, 2005 22:36

Re: Problem with Tab Control buttons and Static Text

Postby mouglue » Mon May 30, 2005 22:42

Thanks for the info.

I am useing the tahoma.ttf file that came with the TaharezLook stuff.

If I am understanding what your saying then the system takes the "Tallest" glyph and uses that for a default height?
Instead of finding the height of the glyphs used in the text box?

User avatar
mouglue
Just popping in
Just popping in
Posts: 10
Joined: Mon Apr 04, 2005 22:36

Re: Problem with Tab Control buttons and Static Text

Postby mouglue » Sun Jun 05, 2005 23:28

Does anyone have any ideas about the height of the tab control?

Is there any way I can "Set" that to be like 2 pixels taller then what ever font is being used?

CE's answer does explain the static text box... but not the tab's buttons.


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 5 guests