Added wxWindowBase::CentreOnParent to allow top level windows to be

centered over their parent (if they have one) instead of the entire
screen.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
1999-06-10 22:44:50 +00:00
parent 7e2c43b855
commit 7631a29204
3 changed files with 61 additions and 3 deletions

View File

@@ -259,6 +259,8 @@ public:
// 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();