You just need to do it the right way:
- grid sizer with two columns
- textctrls in right column
- left column has a 3-item horizontal box sizers, one per cell
- box sizers:
- 1st slot: spacer with proportion = 1
- 2nd slot: bitmap with proportion = 0
- 3rd slot: label with proportion = 0
Sprinkle in some wx.EXPAND where appropriate. wxGlade makes
this a breeze. Et voila ! It lines up just the way you want
it.
Karsten
···
On Mon, May 19, 2008 at 07:48:55AM -0500, Mike Driscoll wrote:
b llllllllll ttttttttttttttttt
b llllllllllll ttttttttttttttttt
b lllll ttttttttttttttttt
b llllllll ttttttttttttttttt3. How to configure sizers so that the label controls (and icons)
vertically center in the vertical space used by the text controls. In
your example, the labels vertically align to the top of each row vs.
being vertically centered against its companion text control.
It just occurred to me that another good method to use for this format
is to use one of the grid sizers. I think that would make it easier. I
planned to do basically the same tutorial, but with a grid sizer just
to show the difference anyway.I usually don't reply to myself, but after hitting send last night, I
thought about this some more and I think the grid sizer will block this
behavior since each widget will be in its own cell.
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346