Gerbview: use native tab widget

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8903
This commit is contained in:
Julian Fellinger 2021-08-06 16:39:11 +02:00 committed by Jon Evans
parent e91218b876
commit cc99323c86
2 changed files with 3 additions and 7 deletions

View File

@ -505,18 +505,14 @@ LAYER_WIDGET::LAYER_WIDGET( wxWindow* aParent, wxWindow* aFocusOwner, wxWindowID
wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
m_notebook = new wxAuiNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxAUI_NB_TOP );
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_TOP );
wxFont font = m_notebook->GetFont();
// change the font size on the notebook's tabs to match aPointSize
font.SetPointSize( pointSize );
m_notebook->SetFont( font );
m_notebook->SetNormalFont( font );
m_notebook->SetSelectedFont( font );
m_notebook->SetMeasuringFont( font );
m_LayerPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
wxTAB_TRAVERSAL );

View File

@ -457,7 +457,7 @@ protected:
ID_LAST_VALUE
};
wxAuiNotebook* m_notebook;
wxNotebook* m_notebook;
wxPanel* m_LayerPanel;
wxScrolledWindow* m_LayerScrolledWindow;
wxFlexGridSizer* m_LayersFlexGridSizer;