mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-17 16:40:07 +02:00
Fix repaint of Mixer board after change of track name...
... Problem was introduced in 2.2.0 at commit dc05b94 Also, in MixerBoard, change name whenever changing the label, which might matter to screen readers.
This commit is contained in:
parent
1498958562
commit
2b3be3208e
@ -461,6 +461,7 @@ void MixerTrackCluster::UpdateName()
|
||||
const wxString newName = mTrack->GetName();
|
||||
SetName(newName);
|
||||
mStaticText_TrackName->SetLabel(newName);
|
||||
mStaticText_TrackName->SetName(newName);
|
||||
#if wxUSE_TOOLTIPS
|
||||
mStaticText_TrackName->SetToolTip(newName);
|
||||
#endif
|
||||
|
@ -1308,13 +1308,14 @@ auStaticText::auStaticText(wxWindow* parent, wxString textIn) :
|
||||
SetBackgroundColour( theTheme.Colour( clrMedium));
|
||||
SetForegroundColour( theTheme.Colour( clrTrackPanelText));
|
||||
SetName(textIn);
|
||||
SetLabel(textIn);
|
||||
}
|
||||
|
||||
void auStaticText::OnPaint(wxPaintEvent & WXUNUSED(evt))
|
||||
{
|
||||
wxPaintDC dc(this);
|
||||
//dc.SetTextForeground( theTheme.Colour( clrTrackPanelText));
|
||||
dc.DrawText( GetName(), 0,0);
|
||||
dc.DrawText( GetLabel(), 0,0);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user