mirror of
https://github.com/cookiengineer/audacity
synced 2025-05-01 16:19:43 +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 reinstates commit d2c112600d38f0894fe783f8dfd8861b5e604fce, which had been reverted at 21a1260f912a9cb0ac8bff4f6e0fd7f8132f01ca, but making the changes conditionally compiled on Mac only.)
This commit is contained in:
parent
544d9aa580
commit
498507ddd3
@ -401,6 +401,12 @@ wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
||||
Style( 0 ) );
|
||||
|
||||
pChoice->SetSizeHints( 180,-1);// Use -1 for 'default size' - Platform specific.
|
||||
#ifdef __WXMAC__
|
||||
#if wxUSE_ACCESSIBILITY
|
||||
// so that name can be set on a standard control
|
||||
mpWind->SetAccessible(safenew WindowAccessible(mpWind));
|
||||
#endif
|
||||
#endif
|
||||
pChoice->SetName(wxStripMenuCodes(Prompt));
|
||||
if ( Selected >= 0 && Selected < choices.size() )
|
||||
pChoice->SetSelection( Selected );
|
||||
|
Loading…
x
Reference in New Issue
Block a user