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
This commit is contained in:
Francesco Montorsi
2008-12-06 16:45:51 +00:00
parent 727aa9062b
commit 3e0e389578
2 changed files with 14 additions and 0 deletions

View File

@@ -58,6 +58,9 @@
wxWindow::SetVirtualSizeHints() with wxWindow::SetMinVirtualSize() or wxWindow::SetVirtualSizeHints() with wxWindow::SetMinVirtualSize() or
similar and remove it entirely in future. 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 As with all windows, an application can draw onto a wxScrolled using a
@ref overview_dc "device context". @ref overview_dc "device context".

View File

@@ -2448,6 +2448,17 @@ public:
virtual void SetSize(int width, int height); 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. Sets the window to have the given layout sizer.
The window will then own the object, and will take care of its deletion. The window will then own the object, and will take care of its deletion.