Lines 14-20
Link Here
|
14 |
// Adjust the default row height to be more compact |
14 |
// Adjust the default row height to be more compact |
15 |
wxFont font = GetLabelFont(); |
15 |
wxFont font = GetLabelFont(); |
16 |
int w=40, h=18; |
16 |
int w=40, h=18; |
17 |
GetTextExtent("a", &w, &h, NULL, NULL, &font); |
17 |
GetTextExtent(wxT("a"), &w, &h, NULL, NULL, &font); |
18 |
SetColLabelSize(h+6); |
18 |
SetColLabelSize(h+6); |
19 |
#ifdef __WXGTK__ |
19 |
#ifdef __WXGTK__ |
20 |
SetDefaultRowSize(h+8, TRUE); |
20 |
SetDefaultRowSize(h+8, TRUE); |
Lines 30-36
Link Here
|
30 |
wxString strCol; |
30 |
wxString strCol; |
31 |
for (int nCol = 0; nCol < GetNumberCols(); nCol++) |
31 |
for (int nCol = 0; nCol < GetNumberCols(); nCol++) |
32 |
{ |
32 |
{ |
33 |
strCol.Printf("column%d", nCol); |
33 |
strCol.Printf(wxT("column%d"), nCol); |
34 |
cfg->Write(strCol, (long)GetColSize(nCol)); |
34 |
cfg->Write(strCol, (long)GetColSize(nCol)); |
35 |
} |
35 |
} |
36 |
} |
36 |
} |
Lines 61-67
Link Here
|
61 |
long nColWidth; |
61 |
long nColWidth; |
62 |
for (int nCol = 0; nCol < GetNumberCols(); nCol++) |
62 |
for (int nCol = 0; nCol < GetNumberCols(); nCol++) |
63 |
{ |
63 |
{ |
64 |
strCol.Printf("column%d", nCol); |
64 |
strCol.Printf(wxT("column%d"), nCol); |
65 |
if (cfg->Read(strCol, &nColWidth)) |
65 |
if (cfg->Read(strCol, &nColWidth)) |
66 |
SetColSize(nCol, nColWidth); |
66 |
SetColSize(nCol, nColWidth); |
67 |
} |
67 |
} |