mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-16 08:34:10 +02:00
Replace dummy checkbox by vertical line.
Fortunately a vertical line works just as well as a checkbox in working around the bug where radio buttons change to the first field. It is better for screen readers too as it is not included in the tab order.
This commit is contained in:
parent
552a69df72
commit
3761ae3fe5
@ -344,7 +344,8 @@ void SelectionBar::Populate()
|
|||||||
wxFocusEventHandler(SelectionBar::OnFocus),
|
wxFocusEventHandler(SelectionBar::OnFocus),
|
||||||
NULL,
|
NULL,
|
||||||
this);
|
this);
|
||||||
/*
|
|
||||||
|
#if 0
|
||||||
AButton *& pBtn = mButtons[ SelTBMenuID - SelTBFirstButton];
|
AButton *& pBtn = mButtons[ SelTBMenuID - SelTBFirstButton];
|
||||||
pBtn = ToolBar::MakeButton(this,
|
pBtn = ToolBar::MakeButton(this,
|
||||||
bmpRecoloredUpSmall, bmpRecoloredDownSmall, bmpRecoloredHiliteSmall,
|
bmpRecoloredUpSmall, bmpRecoloredDownSmall, bmpRecoloredHiliteSmall,
|
||||||
@ -356,10 +357,18 @@ void SelectionBar::Populate()
|
|||||||
|
|
||||||
pBtn->SetLabel("Selection options");
|
pBtn->SetLabel("Selection options");
|
||||||
pBtn->SetToolTip("Selection options");
|
pBtn->SetToolTip("Selection options");
|
||||||
|
pBtn->Disable();
|
||||||
mainSizer->Add( pBtn, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
|
mainSizer->Add( pBtn, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
|
||||||
*/
|
#endif
|
||||||
wxCheckBox * pCheck = new wxCheckBox(this, id2, "Checkbox");
|
|
||||||
mainSizer->Add( pCheck, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
|
// wxCheckBox * pCheck = new wxCheckBox(this, id2, "Checkbox");
|
||||||
|
// pCheck->Enable( false );
|
||||||
|
// mainSizer->Add( pCheck, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5);
|
||||||
|
|
||||||
|
mainSizer->Add(safenew wxStaticLine(this, id2, wxDefaultPosition,
|
||||||
|
wxSize(1, toolbarSingle),
|
||||||
|
wxLI_VERTICAL),
|
||||||
|
0, wxRIGHT, 5);
|
||||||
|
|
||||||
{
|
{
|
||||||
auto hSizer = std::make_unique<wxBoxSizer>(wxHORIZONTAL);
|
auto hSizer = std::make_unique<wxBoxSizer>(wxHORIZONTAL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user