mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-23 17:25:54 +01:00
Ensure row selection mode is used in grids
This commit is contained in:
@@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user