Make SetMinSize() and SetMaxSize() virtual so they
can be overridden in wxTLW to set WM hints. Actually did that for wxGTK, nothing required for wxMSW, no idea about wxMac. Documented this in tlw.tex. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42718 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -121,6 +121,12 @@ protected:
|
||||
int width, int height,
|
||||
int sizeFlags = wxSIZE_AUTO);
|
||||
|
||||
// a different API for SetSizeHints
|
||||
virtual void SetMinSize(const wxSize& minSize);
|
||||
virtual void SetMaxSize(const wxSize& maxSize);
|
||||
|
||||
// give hints to the Window Manager for how the size
|
||||
// of the TLW can be changed by dragging
|
||||
virtual void DoSetSizeHints( int minW, int minH,
|
||||
int maxW = wxDefaultCoord, int maxH = wxDefaultCoord,
|
||||
int incW = wxDefaultCoord, int incH = wxDefaultCoord );
|
||||
|
Reference in New Issue
Block a user