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:
@@ -958,6 +958,16 @@ void wxTopLevelWindowGTK::DoSetClientSize( int width, int height )
|
||||
width + m_miniEdge*2, height + m_miniEdge*2 + m_miniTitle, 0);
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::SetMinSize(const wxSize& minSize)
|
||||
{
|
||||
SetSizeHints( minSize.x, minSize.y, GetMaxWidth(), GetMaxHeight() );
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::SetMaxSize(const wxSize& maxSize)
|
||||
{
|
||||
SetSizeHints( GetMinWidth(), GetMinHeight(), maxSize.x, maxSize.y );
|
||||
}
|
||||
|
||||
void wxTopLevelWindowGTK::DoSetSizeHints( int minW, int minH,
|
||||
int maxW, int maxH,
|
||||
int incW, int incH )
|
||||
|
Reference in New Issue
Block a user