From 3e0e38957893a11c9bfc2c334a696c73a9eaf39d Mon Sep 17 00:00:00 2001 From: Francesco Montorsi Date: Sat, 6 Dec 2008 16:45:51 +0000 Subject: [PATCH] added a @todo about references to old wx functions git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57141 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/scrolwin.h | 3 +++ interface/wx/window.h | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/interface/wx/scrolwin.h b/interface/wx/scrolwin.h index 454af1e4ee..aff424c547 100644 --- a/interface/wx/scrolwin.h +++ b/interface/wx/scrolwin.h @@ -58,6 +58,9 @@ wxWindow::SetVirtualSizeHints() with wxWindow::SetMinVirtualSize() or similar and remove it entirely in future. + @todo review docs for this class replacing SetVirtualSizeHints() with + SetMinClientSize(). + As with all windows, an application can draw onto a wxScrolled using a @ref overview_dc "device context". diff --git a/interface/wx/window.h b/interface/wx/window.h index ab349f2486..4b7f8a7c0a 100644 --- a/interface/wx/window.h +++ b/interface/wx/window.h @@ -2448,6 +2448,17 @@ public: virtual void SetSize(int width, int height); //@} + /** + Use of this function for windows which are not toplevel windows + (such as wxDialog or wxFrame) is discouraged. + Please use SetMinSize() and SetMaxSize() instead. + + @see wxTopLevelWindow::SetSizeHints + */ + void SetSizeHints( const wxSize& minSize, + const wxSize& maxSize=wxDefaultSize, + const wxSize& incSize=wxDefaultSize); + /** Sets the window to have the given layout sizer. The window will then own the object, and will take care of its deletion. -- 2.45.2