X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5873607e5c6d255f5692cc37637551eaeb2e4472..dc92adaf0c8d1d8b71b4a4cabe6f42c3a17f62a1:/docs/latex/wx/layout.tex diff --git a/docs/latex/wx/layout.tex b/docs/latex/wx/layout.tex index ac9f3bffc3..e7cb36b22f 100644 --- a/docs/latex/wx/layout.tex +++ b/docs/latex/wx/layout.tex @@ -1,5 +1,7 @@ \section{\class{wxLayoutConstraints}}\label{wxlayoutconstraints} +{\bf Note:} constraints are now deprecated and you should use \helpref{sizers}{sizeroverview} instead. + Objects of this class can be associated with a window to define its layout constraints, with respect to siblings or its parent. @@ -28,9 +30,9 @@ not be changed. \perlnote{In wxPerl the constraints are accessed as \begin{verbatim} - my( \$constraint ) = Wx::LayoutConstraints->new(); - \$constraint->centreX->AsIs(); - \$constraint->centreY->Unconstrained(); + constraint = Wx::LayoutConstraints->new(); + constraint->centreX->AsIs(); + constraint->centreY->Unconstrained(); \end{verbatim} }