Ensure row selection mode is used in grids

This commit is contained in:
Leland Lucius 2021-01-25 12:57:33 -06:00
parent 197ebc2994
commit 3d632d397d
3 changed files with 2 additions and 3 deletions

View File

@ -128,7 +128,7 @@ LabelDialog::~LabelDialog()
void LabelDialog::PopulateLabels()
{
// Build the initial (empty) grid
mGrid->CreateGrid(0, Col_Max);
mGrid->CreateGrid(0, Col_Max, wxGrid::wxGridSelectRows);
mGrid->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
size_t ii = 0;

View File

@ -895,7 +895,7 @@ void TagsEditorDialog::PopulateOrExchange(ShuttleGui & S)
names, std::mem_fn( &TranslatableString::Translation ) );
// Build the initial (empty) grid
mGrid->CreateGrid(0, 2);
mGrid->CreateGrid(0, 2, wxGrid::wxGridSelectRows);
mGrid->SetRowLabelSize(0);
mGrid->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
mGrid->SetColLabelValue(0, _("Tag"));

View File

@ -500,7 +500,6 @@ Grid::Grid(wxWindow *parent,
safenew wxGridCellStringRenderer,
safenew ChoiceEditor);
SetSelectionForeground(GetDefaultCellTextColour());
SetSelectionBackground(GetDefaultCellBackgroundColour());
}