Fix incorrect vertical position of some ckeckboxes in some wxGrid used in dialogs
This commit is contained in:
parent
9e115a548e
commit
ba8b8d2738
|
@ -191,7 +191,7 @@ bool DIALOG_GLOBAL_EDIT_TEXT_AND_GRAPHICS::TransferDataToWindow()
|
||||||
#define SET_BOOL_VALUE( aRow, aCol, aValue ) \
|
#define SET_BOOL_VALUE( aRow, aCol, aValue ) \
|
||||||
attr = new wxGridCellAttr; \
|
attr = new wxGridCellAttr; \
|
||||||
attr->SetRenderer( new wxGridCellBoolRenderer() ); \
|
attr->SetRenderer( new wxGridCellBoolRenderer() ); \
|
||||||
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM ); \
|
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER ); \
|
||||||
attr->SetReadOnly(); \
|
attr->SetReadOnly(); \
|
||||||
m_grid->SetAttr( aRow, aCol, attr ); \
|
m_grid->SetAttr( aRow, aCol, attr ); \
|
||||||
m_grid->SetCellValue( aRow, aCol, ( aValue ) ? "1" : "" )
|
m_grid->SetCellValue( aRow, aCol, ( aValue ) ? "1" : "" )
|
||||||
|
|
|
@ -239,7 +239,7 @@ bool PANEL_MODEDIT_DEFAULTS::TransferDataToWindow()
|
||||||
auto attr = new wxGridCellAttr;
|
auto attr = new wxGridCellAttr;
|
||||||
attr->SetRenderer( new wxGridCellBoolRenderer() );
|
attr->SetRenderer( new wxGridCellBoolRenderer() );
|
||||||
attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
|
attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
|
||||||
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
|
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
||||||
m_layerClassesGrid->SetAttr( i, COL_TEXT_ITALIC, attr );
|
m_layerClassesGrid->SetAttr( i, COL_TEXT_ITALIC, attr );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -115,13 +115,13 @@ bool PANEL_SETUP_TEXT_AND_GRAPHICS::TransferDataToWindow()
|
||||||
auto attr = new wxGridCellAttr;
|
auto attr = new wxGridCellAttr;
|
||||||
attr->SetRenderer( new wxGridCellBoolRenderer() );
|
attr->SetRenderer( new wxGridCellBoolRenderer() );
|
||||||
attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
|
attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
|
||||||
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
|
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
||||||
m_grid->SetAttr( i, COL_TEXT_ITALIC, attr );
|
m_grid->SetAttr( i, COL_TEXT_ITALIC, attr );
|
||||||
|
|
||||||
attr = new wxGridCellAttr;
|
attr = new wxGridCellAttr;
|
||||||
attr->SetRenderer( new wxGridCellBoolRenderer() );
|
attr->SetRenderer( new wxGridCellBoolRenderer() );
|
||||||
attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
|
attr->SetReadOnly(); // not really; we delegate interactivity to GRID_TRICKS
|
||||||
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_BOTTOM );
|
attr->SetAlignment( wxALIGN_CENTER, wxALIGN_CENTER );
|
||||||
m_grid->SetAttr( i, COL_TEXT_UPRIGHT, attr );
|
m_grid->SetAttr( i, COL_TEXT_UPRIGHT, attr );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue