// centre with respect to the the parent window
void Centre( int direction = wxHORIZONTAL );
void Center( int direction = wxHORIZONTAL ) { Centre(direction); }
+ void CentreOnParent(int direction = wxHORIZONTAL );
+ void CenterOnParent(int direction = wxHORIZONTAL ) { CentreOnParent(direction); }
// set window size to wrap around its children
virtual void Fit();
inline wxWindow *GetGrandParent() const;
// is this window a top level one?
- bool IsTopLevel() const { return m_parent != 0; }
+ bool IsTopLevel() const;
// it doesn't really change parent, use ReParent() instead
void SetParent( wxWindowBase *parent ) { m_parent = (wxWindow *)parent; }