Help me fix these errors: CustomGrid.cpp In member function ‘virtual void…
Jump to turn (8)
- 1Help me fix these errors: CustomGrid.cpp||In member function ‘virtual void Custo
- 2CustomGrid.cpp||In member function ‘virtual void CustomGrid::DrawRowLabel(wxDC&,
- 3it works but it doesn't change the color, probably because of the OS theme is th
- 4it doesn't change the color at all, it only show white font color, how can I for
- 5it works but now it changed EVERY single element and not just the pinned element
- 6changing the order didn't worked either, it is still as default color white
- 7I got this errors: PinnedCellRenderer.cpp||In member function ‘virtual void Pinn
- 8CustomGrid.cpp: In member function ‘void CustomGrid::DrawCell(wxDC&, const wxGri
- User
Help me fix these errors:
CustomGrid.cpp||In member function ‘virtual void CustomGrid::DrawRowLabel(wxDC&, int)’:| CustomGrid.cpp|31|error: no matching function for call to ‘CustomGrid::GetRowLabelSize(int&)’| /usr/local/include/wx-3.1/wx/generic/grid.h|1801|note: candidate: ‘int wxGrid::GetRowLabelSize() const’| /usr/local/include/wx-3.1/wx/generic/grid.h|1801|note: candidate expects 0 arguments, 1 provided| CustomGrid.cpp|31|error: no matching function for call to ‘CustomGrid::GetRowLabelSize(int&)’| /usr/local/include/wx-3.1/wx/generic/grid.h|1801|note: candidate: ‘int wxGrid::GetRowLabelSize() const’| /usr/local/include/wx-3.1/wx/generic/grid.h|1801|note: candidate expects 0 arguments, 1 provided|
void CustomGrid::DrawRowLabel(wxDC& dc, int row) { if (pinnedRows.count(row) > 0) { dc.SetBrush(wxBrush(wxColour(255, 255, 0))); // Yellow color dc.SetPen(*wxTRANSPARENT_PEN); dc.DrawRectangle(wxRect(wxSize(GetRowLabelSize(row).GetWidth(), GetRowTop(row), GetRowLabelSize(row).GetWidth(), GetRowHeight(row)));
codereturn; } wxGrid::DrawRowLabel(dc, row);}
- Assistant