git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19982
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
mainsizer->Add( choicesizer, 0, wxEXPAND );
}
mainsizer->Add( choicesizer, 0, wxEXPAND );
}
+ // FIXME - memory leaks!!
+
m_choice->Append( firstWildText, (void*) new wxString( firstWild ) );
while (tokens.HasMoreTokens())
{
m_choice->Append( firstWildText, (void*) new wxString( firstWild ) );
while (tokens.HasMoreTokens())
{
m_needUpdating = TRUE;
}
}
m_needUpdating = TRUE;
}
}
- else if ( event.LeftDClick() )
+ else if ( event.LeftDClick() && m_windowTwo )
{
OnDoubleClickSash(x, y);
}
{
OnDoubleClickSash(x, y);
}
DoSetSashPosition(0);
SizeWindows();
DoSetSashPosition(0);
SizeWindows();
// the sash if the minimum pane size is zero.
void wxSplitterWindow::OnDoubleClickSash(int x, int y)
{
// the sash if the minimum pane size is zero.
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
wxSplitterEvent event(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, this);
event.m_data.pt.x = x;
// new code should handle events instead of using the virtual functions
wxSplitterEvent event(wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, this);
event.m_data.pt.x = x;
{
if ( GetMinimumPaneSize() == 0 || m_permitUnsplitAlways )
{
{
if ( GetMinimumPaneSize() == 0 || m_permitUnsplitAlways )
{
+ wxWindow* win = m_windowTwo;
+ if (Unsplit(win))
+ OnUnsplit(win);
}
}
//else: blocked by user
}
}
//else: blocked by user