Various wxCollapsiblePane enhancements (re-patch 1577412):

1. wxUSE_COLLPANE added
2. XRC handler added
3. flicker fixes for the generic version
4. sizing fixes for GTK+ version
5. RTL fixes for the generic version (via wxBoxSizer)
6. better appearance under Mac for the generic version


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-10-30 20:08:17 +00:00
parent a4c8fc2374
commit 912c39325b
32 changed files with 609 additions and 86 deletions

View File

@@ -48,10 +48,13 @@ public:
void Init()
{
m_pButton = NULL;
m_pStatLine = NULL;
m_pPane = NULL;
m_pStaticLine = NULL;
m_sz = NULL;
}
~wxGenericCollapsiblePane();
bool Create(wxWindow *parent,
wxWindowID winid,
const wxString& label,
@@ -80,17 +83,16 @@ public:
protected:
// overridden methods
virtual wxSize DoGetBestSize() const;
// internal helpers
void LayoutChildren();
bool Layout();
wxString GetBtnLabel() const;
int GetBorder() const;
// child controls
wxButton *m_pButton;
wxStaticLine *m_pStatLine;
wxStaticLine *m_pStaticLine;
wxWindow *m_pPane;
wxSizer *m_sz;
// the button label without ">>" or "<<"
wxString m_strLabel;