[wx-dev] wxALIGN_BASELINE ?
Stefan Csomor
csomor at advancedconcepts.ch
Mon Mar 24 01:23:27 PDT 2008
Hi
I've written about the options offered by a GetBaselineOffset in wxWindow
(defaulting to 0 if not present) many moons ago, it is not only mac controls
that expose this, but eg is also used the Matisse Designer for Java.
Centering vertically sometimes is enough, but not for every control on every
platform.
But of course there is some work needed to implement it, having virtual
GetBaselineOffset is only one part of the story, extending sizers to look
beyond their own managed window is the other part (as center, top, bottom,
extend etc. all can be resolved by asking their own window, while align-xyz
cannot ... -
( There are other align options btw. that would benefit from such a concept,
eg having two flexgrids (that are separated by some other controls) to
synchronize their spacing, without having to resort to bag sizers.. one
reason more to make windows and sizers a little bit more cleanly separated
.... )
Best,
Stefan
More information about the wx-dev
mailing list