document that wxTLW::SetSize() is affected by SetSizeHints()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-02-11 21:12:15 +00:00
parent e0b7c2b713
commit 0023c3326c
3 changed files with 17 additions and 4 deletions

View File

@@ -330,18 +330,20 @@ A simpler interface for setting the size hints than
\param{const wxSize\&}{ maxSize=wxDefaultSize}, \param{const wxSize\&}{ incSize=wxDefaultSize}}
Allows specification of minimum and maximum window sizes, and window size increments.
If a pair of values is not set (or set to -1), the default values will be used.
If a pair of values is not set (or set to -1), no constraints will be used.
\docparam{incW}{Specifies the increment for sizing the width (GTK/Motif/Xt only).}
\docparam{incH}{Specifies the increment for sizing the height (GTK/Motif/Xt only).}
\docparam{incSize}{Increment size (GTK/Motif/Xt only).}
\docparam{incSize}{Increment size (only taken into account under X11-based
ports such as wxGTK/wxMotif/wxX11).}
\wxheading{Remarks}
If this function is called, the user will not be able to size the window outside
the given bounds. The resizing increments are only significant under GTK, Motif or Xt.
Notice that this function not only prevents the user from resizing the window
outside the given bounds but it also prevents the program itself from doing it
using \helpref{SetSize}{wxwindowsetsize}.
\membersection{wxTopLevelWindow::SetRightMenu}\label{wxtoplevelwindowsetrightmenu}

View File

@@ -198,3 +198,10 @@ ANSI ones (using \helpref{wxMBConv classes}{mbconvclasses})
and construct wxString objects from Unicode strings (presumably read
from some external file or elsewhere).
\subsection{Traps for the unwary}
\begin{itemize}
\item Casting c\_str() to void* is now char*, not wxChar*
\item Passing c\_str(), mb\_str() or wc\_str() to variadic functions
doesn't work
\end{itemize}

View File

@@ -3547,6 +3547,10 @@ The first form sets the position and optionally size, of the window.
Parameters may be $wxDefaultCoord$ to indicate either that a default should be supplied
by wxWidgets, or that the current value of the dimension should be used.
Notice that for \helpref{top level window}{wxtoplevelwindow} the size will not
be changed if it is outside of the valid range as set by
\helpref{SetSizeHints}{wxtoplevelwindowsetsizehints}.
\wxheading{See also}
\helpref{wxWindow::Move}{wxwindowmove}