summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
90b5abc)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13747
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
void wxIndividualLayoutConstraint::Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val, int marg)
{
void wxIndividualLayoutConstraint::Set(wxRelationship rel, wxWindowBase *otherW, wxEdge otherE, int val, int marg)
{
+ if (rel == wxSameAs)
+ {
+ // If Set is called by the user with wxSameAs then call SameAs to do
+ // it since it will actually use wxPercent instead.
+ SameAs(otherW, otherE, marg);
+ return;
+ }
+
relationship = rel;
otherWin = otherW;
otherEdge = otherE;
relationship = rel;
otherWin = otherW;
otherEdge = otherE;
// 'Same edge' alignment
//
void wxIndividualLayoutConstraint::SameAs(wxWindowBase *otherW, wxEdge edge, int marg)
// 'Same edge' alignment
//
void wxIndividualLayoutConstraint::SameAs(wxWindowBase *otherW, wxEdge edge, int marg)
Set(wxPercentOf, otherW, edge, 100, marg);
}
// The edge is a percentage of the other window's edge
void wxIndividualLayoutConstraint::PercentOf(wxWindowBase *otherW, wxEdge wh, int per)
Set(wxPercentOf, otherW, edge, 100, marg);
}
// The edge is a percentage of the other window's edge
void wxIndividualLayoutConstraint::PercentOf(wxWindowBase *otherW, wxEdge wh, int per)
Set(wxPercentOf, otherW, wh, per);
}
Set(wxPercentOf, otherW, wh, per);
}
Set each calculated position and size
*/
Set each calculated position and size
*/
#if WXWIN_COMPATIBILITY
bool wxOldDoLayout(wxWindowBase *win)
{
#if WXWIN_COMPATIBILITY
bool wxOldDoLayout(wxWindowBase *win)
{