Deprecate not working wxSplitterWindow::SetSashSize().
Setting sash size to non default value didn't work correctly and didn't make much sense anyhow as the sash appearance is platform-dependent and current code for drawing it doesn't work for arbitrary sizes. Simply remove the possibility to set the sash size. Closes #12412. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66232 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,7 +129,6 @@ void wxSplitterWindow::Init()
|
||||
m_sashStart = 0;
|
||||
m_sashPosition = m_requestedSashPosition = 0;
|
||||
m_sashGravity = 0.0;
|
||||
m_sashSize = -1; // -1 means use the native sash size
|
||||
m_lastSize = wxSize(0,0);
|
||||
m_checkRequestedSashPosition = false;
|
||||
m_minimumPaneSize = 0;
|
||||
@@ -491,7 +490,7 @@ bool wxSplitterWindow::SashHitTest(int x, int y, int tolerance)
|
||||
|
||||
int wxSplitterWindow::GetSashSize() const
|
||||
{
|
||||
return m_sashSize > -1 ? m_sashSize : wxRendererNative::Get().GetSplitterParams(this).widthSash;
|
||||
return wxRendererNative::Get().GetSplitterParams(this).widthSash;
|
||||
}
|
||||
|
||||
int wxSplitterWindow::GetBorderSize() const
|
||||
|
Reference in New Issue
Block a user