I can not change the font size in col label.
I have tried different values in Tabulka->SetFont(wxFont(23, wxSWISS, wxNORMAL, wxNORMAL, false, _("MS Sans Serif")))
But the result is still the same, the font size does not change
Code: Select all
Tabulka = new wxGrid(Calibration, ID_TABULKA, wxPoint(540, 70), wxSize(162, 360));
Tabulka->SetFont(wxFont(23, wxSWISS, wxNORMAL, wxNORMAL, false, _("MS Sans Serif")));
Tabulka->SetDefaultColSize(80);
Tabulka->SetDefaultRowSize(40);
Tabulka->SetRowLabelSize(1);
Tabulka->SetColLabelSize(40);
Tabulka->CreateGrid(8,2,wxGrid::wxGridSelectCells);
Code: Select all
for(a=0; a<= 7; ++a){
for(b=0; b<=1; ++b){
Tabulka->SetCellFont(a, b, wxFont(pismo8, wxSWISS, wxNORMAL, wxNORMAL, false, _("MS Sans Serif")));
}
}
wxDev-C++ 7.4.2.569