1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Bug1848: Mac VoiceOver should read names of choice controls...

... This should cover most of the neglected cases, where a choice was added
by ShuttleGui.

There are some places where choices are added directly:  scan the soure for
"safenew wxChoice"

I think there are still uncovered cases then in Grid.cpp, LV2 Effects, and in
commented-out parts of Transcription toolbar.

Are these important?
This commit is contained in:
Paul Licameli 2019-04-25 13:06:44 -04:00
parent 2366075fd4
commit d2c112600d

View File

@ -401,6 +401,10 @@ wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
Style( 0 ) );
pChoice->SetSizeHints( 180,-1);// Use -1 for 'default size' - Platform specific.
#if wxUSE_ACCESSIBILITY
// so that name can be set on a standard control
mpWind->SetAccessible(safenew WindowAccessible(mpWind));
#endif
pChoice->SetName(wxStripMenuCodes(Prompt));
if ( Selected >= 0 && Selected < choices.size() )
pChoice->SetSelection( Selected );