Gerbview: use native tab widget
Fixes https://gitlab.com/kicad/code/kicad/-/issues/8903
This commit is contained in:
parent
e91218b876
commit
cc99323c86
|
@ -505,18 +505,14 @@ LAYER_WIDGET::LAYER_WIDGET( wxWindow* aParent, wxWindow* aFocusOwner, wxWindowID
|
||||||
|
|
||||||
wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
|
wxBoxSizer* mainSizer = new wxBoxSizer( wxVERTICAL );
|
||||||
|
|
||||||
m_notebook = new wxAuiNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
m_notebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_TOP );
|
||||||
wxAUI_NB_TOP );
|
|
||||||
|
|
||||||
wxFont font = m_notebook->GetFont();
|
wxFont font = m_notebook->GetFont();
|
||||||
|
|
||||||
// change the font size on the notebook's tabs to match aPointSize
|
// change the font size on the notebook's tabs to match aPointSize
|
||||||
font.SetPointSize( pointSize );
|
font.SetPointSize( pointSize );
|
||||||
m_notebook->SetFont( font );
|
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,
|
m_LayerPanel = new wxPanel( m_notebook, wxID_ANY, wxDefaultPosition, wxDefaultSize,
|
||||||
wxTAB_TRAVERSAL );
|
wxTAB_TRAVERSAL );
|
||||||
|
|
||||||
|
|
|
@ -457,7 +457,7 @@ protected:
|
||||||
ID_LAST_VALUE
|
ID_LAST_VALUE
|
||||||
};
|
};
|
||||||
|
|
||||||
wxAuiNotebook* m_notebook;
|
wxNotebook* m_notebook;
|
||||||
wxPanel* m_LayerPanel;
|
wxPanel* m_LayerPanel;
|
||||||
wxScrolledWindow* m_LayerScrolledWindow;
|
wxScrolledWindow* m_LayerScrolledWindow;
|
||||||
wxFlexGridSizer* m_LayersFlexGridSizer;
|
wxFlexGridSizer* m_LayersFlexGridSizer;
|
||||||
|
|
Loading…
Reference in New Issue