mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-01 08:29:27 +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:
parent
2366075fd4
commit
d2c112600d
@ -401,6 +401,10 @@ wxChoice * ShuttleGuiBase::AddChoice( const wxString &Prompt,
|
|||||||
Style( 0 ) );
|
Style( 0 ) );
|
||||||
|
|
||||||
pChoice->SetSizeHints( 180,-1);// Use -1 for 'default size' - Platform specific.
|
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));
|
pChoice->SetName(wxStripMenuCodes(Prompt));
|
||||||
if ( Selected >= 0 && Selected < choices.size() )
|
if ( Selected >= 0 && Selected < choices.size() )
|
||||||
pChoice->SetSelection( Selected );
|
pChoice->SetSelection( Selected );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user