added wxGridCellEditor::StartingClick(), used by BoolEditor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2000-02-17 20:03:01 +00:00
parent 297da4bad9
commit e195a54c31
2 changed files with 16 additions and 7 deletions

View File

@@ -392,11 +392,11 @@ void wxGridCellEditor::HandleReturn(wxKeyEvent& event)
void wxGridCellEditor::StartingKey(wxKeyEvent& event)
{
wxASSERT_MSG(m_control,
wxT("The wxGridCellEditor must be Created first!"));
event.Skip();
}
// pass the event to the control
m_control->GetEventHandler()->ProcessEvent(event);
void wxGridCellEditor::StartingClick()
{
}
// ----------------------------------------------------------------------------
@@ -590,9 +590,9 @@ void wxGridCellBoolEditor::Reset()
CBox()->SetValue(m_startValue);
}
void wxGridCellBoolEditor::StartingKey(wxKeyEvent& event)
void wxGridCellBoolEditor::StartingClick()
{
event.Skip();
CBox()->SetValue(!CBox()->GetValue());
}
// ----------------------------------------------------------------------------
@@ -3179,6 +3179,11 @@ void wxGrid::ProcessGridCellMouseEvent( wxMouseEvent& event )
CanEnableCellControl())
{
EnableCellEditControl();
wxGridCellAttr* attr = GetCellAttr(m_currentCellCoords);
attr->GetEditor()->StartingClick();
attr->DecRef();
m_waitForSlowClick = FALSE;
}
else