diff --git a/src/BatchProcessDialog.cpp b/src/BatchProcessDialog.cpp index 969825d74..a45d285ba 100644 --- a/src/BatchProcessDialog.cpp +++ b/src/BatchProcessDialog.cpp @@ -139,13 +139,17 @@ void ApplyMacroDialog::PopulateOrExchange(ShuttleGui &S) { S.AddPrompt( _("Apply Macro to:") ); wxButton* btn = S.Id(ApplyToProjectID).AddButton(_("&Project")); +#if wxUSE_ACCESSIBILITY // so that name can be set on a standard control btn->SetAccessible(safenew WindowAccessible(btn)); +#endif btn->SetName(_("Apply macro to project")); btn = S.Id(ApplyToFilesID).AddButton(_("&Files...")); +#if wxUSE_ACCESSIBILITY // so that name can be set on a standard control btn->SetAccessible(safenew WindowAccessible(btn)); +#endif btn->SetName(_("Apply macro to files...")); } S.EndHorizontalLay(); @@ -662,13 +666,17 @@ void MacrosWindow::PopulateOrExchange(ShuttleGui & S) // Using variable text just to get the positioning options. S.Prop(0).AddVariableText( _("Apply Macro to:"), false, wxALL | wxALIGN_CENTRE_VERTICAL ); wxButton* btn = S.Id(ApplyToProjectID).AddButton(_("&Project")); +#if wxUSE_ACCESSIBILITY // so that name can be set on a standard control btn->SetAccessible(safenew WindowAccessible(btn)); +#endif btn->SetName(_("Apply macro to project")); btn = S.Id(ApplyToFilesID).AddButton(_("&Files...")); +#if wxUSE_ACCESSIBILITY // so that name can be set on a standard control btn->SetAccessible(safenew WindowAccessible(btn)); +#endif btn->SetName(_("Apply macro to files...")); S.Prop(1).AddSpace( 10 ); S.AddStandardButtons( eOkButton | eCancelButton | eHelpButton);