fixed bug in wxSizerFlags::Align/Expand() methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36291 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -54,14 +54,19 @@ public:
|
|||||||
|
|
||||||
wxSizerFlags& Align(int alignment) // combination of wxAlignment values
|
wxSizerFlags& Align(int alignment) // combination of wxAlignment values
|
||||||
{
|
{
|
||||||
m_flags &= wxALL;
|
m_flags &= wxALIGN_MASK;
|
||||||
m_flags |= alignment;
|
m_flags |= alignment;
|
||||||
|
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxSizerFlags& Expand()
|
||||||
|
{
|
||||||
|
m_flags |= wxEXPAND;
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
// some shortcuts for Align()
|
// some shortcuts for Align()
|
||||||
wxSizerFlags& Expand() { return Align(wxEXPAND); }
|
|
||||||
wxSizerFlags& Centre() { return Align(wxCENTRE); }
|
wxSizerFlags& Centre() { return Align(wxCENTRE); }
|
||||||
wxSizerFlags& Center() { return Centre(); }
|
wxSizerFlags& Center() { return Centre(); }
|
||||||
wxSizerFlags& Left() { return Align(wxALIGN_LEFT); }
|
wxSizerFlags& Left() { return Align(wxALIGN_LEFT); }
|
||||||
|
Reference in New Issue
Block a user