1. EVT_GRID_XXX constants renamed to wxEVT_GRID_XXX
2. EVT_GRID_EDITOR_SHOWN/HIDDEN added 3. Alt-X now work in the grid (instead of being eaten in StartingKey) 4. added CanEnableCellControl() and use it before calling EnableEC git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6106 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -95,6 +95,9 @@ BEGIN_EVENT_TABLE( GridFrame, wxFrame )
|
||||
EVT_GRID_SELECT_CELL( GridFrame::OnSelectCell )
|
||||
EVT_GRID_RANGE_SELECT( GridFrame::OnRangeSelected )
|
||||
EVT_GRID_CELL_CHANGE( GridFrame::OnCellValueChanged )
|
||||
|
||||
EVT_GRID_EDITOR_SHOWN( GridFrame::OnEditorShown )
|
||||
EVT_GRID_EDITOR_HIDDEN( GridFrame::OnEditorHidden )
|
||||
END_EVENT_TABLE()
|
||||
|
||||
|
||||
@@ -574,6 +577,19 @@ void GridFrame::OnCellValueChanged( wxGridEvent& ev )
|
||||
ev.Skip();
|
||||
}
|
||||
|
||||
void GridFrame::OnEditorShown( wxGridEvent& ev )
|
||||
{
|
||||
wxLogMessage( "Cell editor shown." );
|
||||
|
||||
ev.Skip();
|
||||
}
|
||||
|
||||
void GridFrame::OnEditorHidden( wxGridEvent& ev )
|
||||
{
|
||||
wxLogMessage( "Cell editor hidden." );
|
||||
|
||||
ev.Skip();
|
||||
}
|
||||
|
||||
void GridFrame::About( wxCommandEvent& WXUNUSED(ev) )
|
||||
{
|
||||
|
Reference in New Issue
Block a user