2010-09-04 11:54:49 +02:00
|
|
|
#ifndef WXGRIDCELLFASTBOOLEDITOR_H
|
|
|
|
#define WXGRIDCELLFASTBOOLEDITOR_H
|
|
|
|
|
|
|
|
#include <wx/wx.h>
|
|
|
|
#include <wx/grid.h>
|
|
|
|
|
|
|
|
// From http://wiki.wxwidgets.org/WxGrid
|
|
|
|
class wxGridCellFastBoolEditor : public wxGridCellBoolEditor
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
|
|
|
void BeginEdit (int row, int col, wxGrid* grid)
|
|
|
|
{
|
|
|
|
wxGridCellBoolEditor::BeginEdit(row, col, grid);
|
2010-09-05 12:08:48 +02:00
|
|
|
|
2010-09-04 11:54:49 +02:00
|
|
|
wxFocusEvent event (wxEVT_KILL_FOCUS);
|
|
|
|
if (m_control)
|
|
|
|
{
|
|
|
|
m_control->GetEventHandler()->AddPendingEvent(event);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|