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.