Ensure row selection mode is used in grids
This commit is contained in:
parent
197ebc2994
commit
3d632d397d
|
@ -128,7 +128,7 @@ LabelDialog::~LabelDialog()
|
||||||
void LabelDialog::PopulateLabels()
|
void LabelDialog::PopulateLabels()
|
||||||
{
|
{
|
||||||
// Build the initial (empty) grid
|
// Build the initial (empty) grid
|
||||||
mGrid->CreateGrid(0, Col_Max);
|
mGrid->CreateGrid(0, Col_Max, wxGrid::wxGridSelectRows);
|
||||||
mGrid->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
|
mGrid->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
|
||||||
|
|
||||||
size_t ii = 0;
|
size_t ii = 0;
|
||||||
|
|
|
@ -895,7 +895,7 @@ void TagsEditorDialog::PopulateOrExchange(ShuttleGui & S)
|
||||||
names, std::mem_fn( &TranslatableString::Translation ) );
|
names, std::mem_fn( &TranslatableString::Translation ) );
|
||||||
|
|
||||||
// Build the initial (empty) grid
|
// Build the initial (empty) grid
|
||||||
mGrid->CreateGrid(0, 2);
|
mGrid->CreateGrid(0, 2, wxGrid::wxGridSelectRows);
|
||||||
mGrid->SetRowLabelSize(0);
|
mGrid->SetRowLabelSize(0);
|
||||||
mGrid->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
|
mGrid->SetDefaultCellAlignment(wxALIGN_LEFT, wxALIGN_CENTER);
|
||||||
mGrid->SetColLabelValue(0, _("Tag"));
|
mGrid->SetColLabelValue(0, _("Tag"));
|
||||||
|
|
|
@ -500,7 +500,6 @@ Grid::Grid(wxWindow *parent,
|
||||||
safenew wxGridCellStringRenderer,
|
safenew wxGridCellStringRenderer,
|
||||||
safenew ChoiceEditor);
|
safenew ChoiceEditor);
|
||||||
|
|
||||||
|
|
||||||
SetSelectionForeground(GetDefaultCellTextColour());
|
SetSelectionForeground(GetDefaultCellTextColour());
|
||||||
SetSelectionBackground(GetDefaultCellBackgroundColour());
|
SetSelectionBackground(GetDefaultCellBackgroundColour());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user