How to vertically align bitmaps with text baseline?

It's surely not a Sizer issue.

>IMO it is. Using the baselines of text objects as alignment
>references is one of the most fundamental concepts in layout.
>It seems to be missing.

>> Try with 'gyj_gyj' instead of 'FooBar' ;:slight_smile:

>Just did. The text is in the same place it was before. Does
>it change for you? The baseline of the text still isn't ali

I really do not think, it is a Sizer issue. The bottom of the both controls, bmp and TextCtrl, are on the bottom of the sizer. The
problem here is that the text itself is somehow vertically centered
in the TextCtrl client area. If you do not use a Sizer and if you
place a bitmap and a textctrl side by side on a panel, I'm pretty
sure, you get the same effect.

Jean-Michel Fauth, Switzerland

It's surely not a Sizer issue.

IMO it is. Using the baselines of text objects as alignment
references is one of the most fundamental concepts in layout.
It seems to be missing.

Try with 'gyj_gyj' instead of 'FooBar' ;:slight_smile:

Just did. The text is in the same place it was before. Does
it change for you? The baseline of the text still isn't ali

I really do not think, it is a Sizer issue. The bottom of the both
controls, bmp and TextCtrl, are on the bottom of the sizer.

I know, but that's not the goal we're trying to accomplish.
What we're trying to do is align the bottom of the bmp and the
_baseline_ of the StaticText.

The problem here is that the text itself is somehow vertically
centered in the TextCtrl client area.

No, the problem here is that Sizers don't provide a way to
vertically align things with the baselines of StaticText or
TextCtrl objects. When worrying about the vertical alignment
of text, it's often the baseline that counts, not the bounding
box of the glyph.

If you do not use a Sizer and if you place a bitmap and a
textctrl side by side on a panel, I'm pretty sure, you get the
same effect.

True, but I don't see the relevance.

···

On 2005-09-08, jmf <jfauth@bluewin.ch> wrote:

--
Grant Edwards grante Yow! What a
                                  at COINCIDENCE! I'm an
                               visi.com authorized "SNOOTS OF THE
                                                   STARS" dealer!!