From 0023c3326ccbf3a8af9332f8d67579365b88ec8d Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <vadim@wxwidgets.org>
Date: Mon, 11 Feb 2008 21:12:15 +0000
Subject: [PATCH] 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
---
 docs/latex/wx/tlw.tex      | 10 ++++++----
 docs/latex/wx/tunicode.tex |  7 +++++++
 docs/latex/wx/window.tex   |  4 ++++
 3 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/docs/latex/wx/tlw.tex b/docs/latex/wx/tlw.tex
index 89f6f8ffde..db2f329cfd 100644
--- a/docs/latex/wx/tlw.tex
+++ b/docs/latex/wx/tlw.tex
@@ -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}
diff --git a/docs/latex/wx/tunicode.tex b/docs/latex/wx/tunicode.tex
index 339b77accb..17d5a3303c 100644
--- a/docs/latex/wx/tunicode.tex
+++ b/docs/latex/wx/tunicode.tex
@@ -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}
diff --git a/docs/latex/wx/window.tex b/docs/latex/wx/window.tex
index c89a698a5b..28f53c5607 100644
--- a/docs/latex/wx/window.tex
+++ b/docs/latex/wx/window.tex
@@ -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}
-- 
2.50.0

