+ 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;
+
+ if ( rel == wxPercentOf )
+ {
+ percent = val;
+ }
+ else
+ {
+ value = val;
+ }
+
+ margin = marg;