added shortcut functions AddSpacer and AddStretchSpacer (plus Prepend and Insert variants)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28486 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Dimitri Schoolwerth
2004-07-25 16:37:48 +00:00
parent db4c39a9e8
commit 749bb9f129
3 changed files with 93 additions and 5 deletions

View File

@@ -198,6 +198,9 @@ public:
wxObject* userData = NULL );
virtual void Add( wxSizerItem *item );
virtual void AddSpacer(int size);
virtual void AddStretchSpacer(int prop = 1);
virtual void Insert( size_t index,
wxWindow *window,
int proportion = 0,
@@ -220,6 +223,9 @@ public:
virtual void Insert( size_t index,
wxSizerItem *item );
virtual void InsertSpacer(size_t index, int size);
virtual void InsertStretchSpacer(size_t index, int prop = 1);
virtual void Prepend( wxWindow *window,
int proportion = 0,
int flag = 0,
@@ -238,6 +244,9 @@ public:
wxObject* userData = NULL );
virtual void Prepend( wxSizerItem *item );
virtual void PrependSpacer(int size);
virtual void PrependStretchSpacer(int prop = 1);
// Deprecated in 2.6 since historically it does not delete the window,
// use Detach instead.
wxDEPRECATED( virtual bool Remove( wxWindow *window ) );
@@ -549,7 +558,7 @@ public:
protected:
// this protected ctor lets us mark the real one above as deprecated
// and still has warning-free build of the library itself:
// and still have warning-free build of the library itself:
wxBookCtrlSizer() {}
wxBookCtrl *m_bookctrl;