Changed wxGridCellCoords from long to int (get rid of most HP warnings?)
Added Shift/Control+Click handling for labels. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -572,6 +572,7 @@ void GridFrame::OnLabelLeftClick( wxGridEvent& ev )
|
||||
}
|
||||
|
||||
if ( ev.ShiftDown() ) logBuf << " (shift down)";
|
||||
if ( ev.ControlDown() ) logBuf << " (control down)";
|
||||
wxLogMessage( "%s", logBuf.c_str() );
|
||||
|
||||
// you must call event skip if you want default grid processing
|
||||
@@ -911,12 +912,12 @@ wxString BugsGridTable::GetTypeName(int WXUNUSED(row), int col)
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
long BugsGridTable::GetNumberRows()
|
||||
int BugsGridTable::GetNumberRows()
|
||||
{
|
||||
return WXSIZEOF(gs_dataBugsGrid);
|
||||
}
|
||||
|
||||
long BugsGridTable::GetNumberCols()
|
||||
int BugsGridTable::GetNumberCols()
|
||||
{
|
||||
return Col_Max;
|
||||
}
|
||||
|
Reference in New Issue
Block a user