1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-03 17:19:43 +02:00

Bug 1664 - Restore wxPanelWrapper

I'd changed wxPanelWrapper to wxPanel in investigating bug 1664, and that change mistakenly went through in my 1664 fix.
In the Lyrics window I don't think the wxPanelWrpper's capturing of Tabs is currently necessary, but keeping it means we can add controls to Lyrics Window, and tab between them correctly on Mac, which wxPanelWrapper was introduced to solve.
This commit is contained in:
James Crook 2017-08-17 09:06:30 +01:00
parent dd02a02c25
commit b476919103
2 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ IMPLEMENT_CLASS(Lyrics, wxPanel)
Lyrics::Lyrics(wxWindow* parent, wxWindowID id,
const wxPoint& pos /*= wxDefaultPosition*/,
const wxSize& size /*= wxDefaultSize*/):
wxPanel(parent, id, pos, size, wxWANTS_CHARS),
wxPanelWrapper(parent, id, pos, size, wxWANTS_CHARS),
mWidth(size.x), mHeight(size.y)
{
mKaraokeHeight = mHeight;

View File

@ -58,7 +58,7 @@ private:
DECLARE_EVENT_TABLE()
};
class Lyrics final : public wxPanel
class Lyrics final : public wxPanelWrapper
{
DECLARE_DYNAMIC_CLASS(Lyrics)