Reverted previous patch
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -358,7 +358,7 @@ void wxSplitterWindow::OnMouseEvent(wxMouseEvent& event)
|
|||||||
m_needUpdating = TRUE;
|
m_needUpdating = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ( event.LeftDClick() && m_windowTwo )
|
else if ( event.LeftDClick() )
|
||||||
{
|
{
|
||||||
OnDoubleClickSash(x, y);
|
OnDoubleClickSash(x, y);
|
||||||
}
|
}
|
||||||
@@ -892,7 +892,7 @@ bool wxSplitterWindow::Unsplit(wxWindow *toRemove)
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
win->Show(FALSE);
|
OnUnsplit(win);
|
||||||
DoSetSashPosition(0);
|
DoSetSashPosition(0);
|
||||||
SizeWindows();
|
SizeWindows();
|
||||||
|
|
||||||
@@ -1062,8 +1062,6 @@ int wxSplitterWindow::OnSashPositionChanging(int newSashPosition)
|
|||||||
// the sash if the minimum pane size is zero.
|
// the sash if the minimum pane size is zero.
|
||||||
void wxSplitterWindow::OnDoubleClickSash(int x, int y)
|
void wxSplitterWindow::OnDoubleClickSash(int x, int y)
|
||||||
{
|
{
|
||||||
wxCHECK_RET(m_windowTwo, wxT("splitter: no window to remove"));
|
|
||||||
|
|
||||||
// new code should handle events instead of using the virtual functions
|
// new code should handle events instead of using the virtual functions
|
||||||
wxSplitterEvent event(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, this);
|
wxSplitterEvent event(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, this);
|
||||||
event.m_data.pt.x = x;
|
event.m_data.pt.x = x;
|
||||||
@@ -1072,9 +1070,7 @@ void wxSplitterWindow::OnDoubleClickSash(int x, int y)
|
|||||||
{
|
{
|
||||||
if ( GetMinimumPaneSize() == 0 || m_permitUnsplitAlways )
|
if ( GetMinimumPaneSize() == 0 || m_permitUnsplitAlways )
|
||||||
{
|
{
|
||||||
wxWindow* win = m_windowTwo;
|
Unsplit();
|
||||||
if (Unsplit(win))
|
|
||||||
OnUnsplit(win);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//else: blocked by user
|
//else: blocked by user
|
||||||
|
Reference in New Issue
Block a user