Workaround for HideRowLabels() missing in wxWidgets 2.8. #770
This commit is contained in:
parent
999af84c54
commit
a5e6340004
@ -108,7 +108,7 @@ sub new {
|
|||||||
$sizer->Add($grid, 1, wxEXPAND | wxALL, 10);
|
$sizer->Add($grid, 1, wxEXPAND | wxALL, 10);
|
||||||
$grid->CreateGrid(0, 3);
|
$grid->CreateGrid(0, 3);
|
||||||
$grid->DisableDragRowSize;
|
$grid->DisableDragRowSize;
|
||||||
$grid->HideRowLabels;
|
$grid->HideRowLabels if &Wx::wxVERSION_STRING !~ / 2\.8\./;
|
||||||
$grid->SetColLabelValue(0, "Min Z");
|
$grid->SetColLabelValue(0, "Min Z");
|
||||||
$grid->SetColLabelValue(1, "Max Z");
|
$grid->SetColLabelValue(1, "Max Z");
|
||||||
$grid->SetColLabelValue(2, "Layer height");
|
$grid->SetColLabelValue(2, "Layer height");
|
||||||
|
Loading…
Reference in New Issue
Block a user