virtual void DeleteWindows();
+ // Enable deleting the SizerItem without destroying the contained sizer.
+ void DetachSizer()
+ { m_sizer = 0; }
+
virtual wxSize GetSize();
virtual wxSize CalcMin();
virtual void SetDimension( wxPoint pos, wxSize size );
virtual void Prepend( wxSizer *sizer, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
virtual void Prepend( int width, int height, int option = 0, int flag = 0, int border = 0, wxObject* userData = NULL );
+ // Remove will delete a sizer, but not a window.
virtual bool Remove( wxWindow *window );
virtual bool Remove( wxSizer *sizer );
virtual bool Remove( int pos );
-
+
+ // Detach will never destroy a sizer or window.
+ virtual bool Detach( wxWindow *window )
+ { return Remove( window ); }
+ virtual bool Detach( wxSizer *sizer );
+ virtual bool Detach( int pos );
+
virtual void Clear( bool delete_windows=FALSE );
virtual void DeleteWindows();