Page 1 of 1

Problem with Tab Control buttons and Static Text

Posted: Fri May 27, 2005 03:18
by mouglue
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?

Re: Problem with Tab Control buttons and Static Text

Posted: Sun May 29, 2005 08:55
by CrazyEddie
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.

Re: Problem with Tab Control buttons and Static Text

Posted: Mon May 30, 2005 22:42
by mouglue
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?

Re: Problem with Tab Control buttons and Static Text

Posted: Sun Jun 05, 2005 23:28
by mouglue
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.