Use wxLogDebug instead of wxLogMessage to log column resizing with splitter in propgrid sample.
wxLogMessage displays message in pop-up window what prevents dragging the splitter and hence resizing cannot be in practice done. wxLogDebug is sufficient for the logging purposes in this place.
This commit is contained in:
@@ -892,7 +892,7 @@ void FormMain::OnPropertyGridColBeginDrag( wxPropertyGridEvent& event )
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
wxLogMessage(wxT("Splitter %i resize began"), event.GetColumn());
|
wxLogDebug(wxT("Splitter %i resize began"), event.GetColumn());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -902,14 +902,14 @@ void FormMain::OnPropertyGridColDragging( wxPropertyGridEvent& event )
|
|||||||
{
|
{
|
||||||
wxUnusedVar(event);
|
wxUnusedVar(event);
|
||||||
// For now, let's not spam the log output
|
// For now, let's not spam the log output
|
||||||
//wxLogMessage(wxT("Splitter %i is being resized"), event.GetColumn());
|
//wxLogDebug(wxT("Splitter %i is being resized"), event.GetColumn());
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
|
||||||
void FormMain::OnPropertyGridColEndDrag( wxPropertyGridEvent& event )
|
void FormMain::OnPropertyGridColEndDrag( wxPropertyGridEvent& event )
|
||||||
{
|
{
|
||||||
wxLogMessage(wxT("Splitter %i resize ended"), event.GetColumn());
|
wxLogDebug(wxT("Splitter %i resize ended"), event.GetColumn());
|
||||||
}
|
}
|
||||||
|
|
||||||
// -----------------------------------------------------------------------
|
// -----------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user