1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-06 19:52:19 +01:00

NumericTextCtrl::SetName takes TranslatableString

This commit is contained in:
Paul Licameli
2019-12-17 20:55:20 -05:00
parent 2214b5ff3b
commit 5909f67fdb
8 changed files with 44 additions and 23 deletions

View File

@@ -1338,7 +1338,7 @@ NumericTextCtrl::NumericTextCtrl(wxWindow *parent, wxWindowID id,
#if wxUSE_ACCESSIBILITY
SetLabel(wxT(""));
SetName(wxT(""));
SetName( {} );
SetAccessible(safenew NumericTextCtrlAx(this));
#endif
@@ -1356,6 +1356,11 @@ NumericTextCtrl::~NumericTextCtrl()
{
}
void NumericTextCtrl::SetName( const TranslatableString &name )
{
wxControl::SetName( name.Translation() );
}
// Set the focus to the first (left-most) non-zero digit
// If all digits are zero, the right-most position is focused
// If all digits are hyphens (invalid), the left-most position is focused