1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-03 09:29:30 +02:00

Use RICH2 edit ctrl in place of plain old text ctrl where possible. We can tab into it, and it is expected to be better for screen readers.

This commit is contained in:
james.k.crook 2010-02-13 11:11:05 +00:00
parent 818f949f4b
commit a2ad4dae36
3 changed files with 10 additions and 2 deletions

View File

@ -5432,7 +5432,8 @@ void AudacityProject::OnAudioDeviceInfo()
S.StartHorizontalLay(wxEXPAND, true);
{
S.SetStyle( wxTE_READONLY|wxHSCROLL|wxTE_MULTILINE );
S.SetStyle( wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxTE_RICH2 |
wxTE_AUTO_URL | wxTE_NOHIDESEL | wxHSCROLL );
tc = S.AddTextWindow(wxT(""));
tc->WriteText(info);
}

View File

@ -1278,6 +1278,12 @@ NyquistOutputDialog::NyquistOutputDialog(wxWindow * parent, wxWindowID id,
item = new wxStaticText(this, -1, prompt);
mainSizer->Add(item, 0, wxALIGN_LEFT | wxLEFT | wxTOP | wxRIGHT, 10);
// TODO: Convert this to using ShuttleGui.
// using S.AddTextWindow();
// TODO: Consider using:
// wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxTE_RICH2 |
// wxTE_AUTO_URL | wxTE_NOHIDESEL | wxHSCROLL
// Haven't made this change as this dialog MUST work with screen readers.
item = new wxTextCtrl(this, -1, message,
wxDefaultPosition, wxSize(400, 200),
wxTE_MULTILINE | wxTE_READONLY);

View File

@ -548,7 +548,8 @@ void ExportMultiple::OnExport(wxCommandEvent& event)
FileList += mExported[i];
FileList += '\n';
}
S.SetStyle( wxTE_READONLY|wxHSCROLL|wxTE_MULTILINE );
S.SetStyle( wxTE_MULTILINE | wxTE_READONLY | wxTE_RICH | wxTE_RICH2 |
wxTE_AUTO_URL | wxTE_NOHIDESEL | wxHSCROLL );
S.AddTextWindow( FileList );
S.AddStandardButtons(eOkButton);
}