[2.8.0] wxSizerFlag and missing methods

Vadim Zeitlin vadim at wxwindows.org
Sun Jan 28 11:05:46 PST 2007


On Sun, 28 Jan 2007 19:19:39 +0100 H <H at h.com> wrote:

H> is it possible to add for the next release missing methods for 
H> wxSizerFlags?
H> 
H> Missing are:
H> 
H>  - All() {return Align(wxALL);}

 This is the same as Border().

H>  - Top() {return Align(wxALIGN_TOP);}
H>  - Bottom() {return Align(wxALIGN_BOTTOM);}

 Those could be added for symmetry with Left/Right() I guess although I
think they're far less common.

H>  - CenterHorizontal() {return (wxALIGN_CENTER_HORIZONTAL);}
H>  - CenterVertical() {return (wxALIGN_CENTER_VERTICAL);}

 I wonder if we shouldn't just make alignment (at least when using
wxSizerFlags?) CENTRE by default. Then those wouldn't be necessary.
 
 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list