X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92b0cd9eb05f73717f6c35dacdfadf703f59b045..9452e8789b77ef678a3a1f11332009d707ed7f21:/include/wx/sizer.h diff --git a/include/wx/sizer.h b/include/wx/sizer.h index c4762c828e..ebb3cc2404 100644 --- a/include/wx/sizer.h +++ b/include/wx/sizer.h @@ -54,14 +54,19 @@ public: wxSizerFlags& Align(int alignment) // combination of wxAlignment values { - m_flags &= wxALL; + m_flags &= ~wxALIGN_MASK; m_flags |= alignment; return *this; } + wxSizerFlags& Expand() + { + m_flags |= wxEXPAND; + return *this; + } + // some shortcuts for Align() - wxSizerFlags& Expand() { return Align(wxEXPAND); } wxSizerFlags& Centre() { return Align(wxCENTRE); } wxSizerFlags& Center() { return Centre(); } wxSizerFlags& Left() { return Align(wxALIGN_LEFT); } @@ -250,6 +255,8 @@ public: void Show(bool show); bool IsShown() const; + void SetUserData(wxObject* userData) + { delete userData; m_userData = userData; } wxObject* GetUserData() const { return m_userData; } wxPoint GetPosition() const