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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user