void FormMain::OnPropertyGridLabelEditBegin( wxPropertyGridEvent& event )
{
- wxLogDebug("wxPG_EVT_LABEL_EDIT_BEGIN(%s)",
- event.GetProperty()->GetLabel().c_str());
+ wxLogMessage("wxPG_EVT_LABEL_EDIT_BEGIN(%s)",
+ event.GetProperty()->GetLabel().c_str());
}
// -----------------------------------------------------------------------
void FormMain::OnPropertyGridLabelEditEnding( wxPropertyGridEvent& event )
{
- wxLogDebug("wxPG_EVT_LABEL_EDIT_ENDING(%s)",
- event.GetProperty()->GetLabel().c_str());
+ wxLogMessage("wxPG_EVT_LABEL_EDIT_ENDING(%s)",
+ event.GetProperty()->GetLabel().c_str());
}
// -----------------------------------------------------------------------
void FormMain::OnPropertyGridItemCollapse( wxPropertyGridEvent& )
{
- wxLogDebug(wxT("Item was Collapsed"));
+ wxLogMessage(wxT("Item was Collapsed"));
}
// -----------------------------------------------------------------------
void FormMain::OnPropertyGridItemExpand( wxPropertyGridEvent& )
{
- wxLogDebug(wxT("Item was Expanded"));
+ wxLogMessage(wxT("Item was Expanded"));
}
// -----------------------------------------------------------------------
{
if ( m_itemVetoDragging->IsChecked() )
{
- wxLogDebug("Splitter %i resize was vetoed", event.GetColumn());
+ wxLogMessage("Splitter %i resize was vetoed", event.GetColumn());
event.Veto();
}
else
{
- wxLogDebug("Splitter %i resize began", event.GetColumn());
+ wxLogMessage("Splitter %i resize began", event.GetColumn());
}
}
void FormMain::OnPropertyGridColDragging( wxPropertyGridEvent& event )
{
+ wxUnusedVar(event);
// For now, let's not spam the log output
- //wxLogDebug("Splitter %i is being resized", event.GetColumn());
+ //wxLogMessage("Splitter %i is being resized", event.GetColumn());
}
// -----------------------------------------------------------------------
void FormMain::OnPropertyGridColEndDrag( wxPropertyGridEvent& event )
{
- wxLogDebug("Splitter %i resize ended", event.GetColumn());
+ wxLogMessage("Splitter %i resize ended", event.GetColumn());
}
// -----------------------------------------------------------------------
#endif // wxUSE_STATUSBAR
FinalizeFramePosition();
+
+#if wxUSE_LOGWINDOW
+ // Create log window
+ m_logWindow = new wxLogWindow(this, "Log Messages", false);
+ m_logWindow->GetFrame()->Move(GetPosition().x + GetSize().x + 10,
+ GetPosition().y);
+ m_logWindow->Show();
+#endif
}
void FormMain::FinalizeFramePosition()