Fix of tooltips on OSX showing on the first page of a parameter tab.

This commit is contained in:
YuSanka 2018-06-27 09:07:04 +02:00 committed by bubnikv
parent 645cc65d2b
commit 5f1f7dcbed
5 changed files with 63 additions and 90 deletions

View file

@ -119,6 +119,8 @@ protected:
wxButton* m_undo_to_sys_btn;
wxButton* m_question_btn;
wxPanel* m_btn_panel;
wxComboCtrl* m_cc_presets_choice;
wxDataViewTreeCtrl* m_presetctrl;
wxImageList* m_preset_icons;
@ -198,7 +200,7 @@ public:
Tab() {}
Tab(wxNotebook* parent, const wxString& title, const char* name, bool no_controller) :
m_parent(parent), m_title(title), m_name(name), m_no_controller(no_controller) {
Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBK_LEFT | wxTAB_TRAVERSAL);
Create(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBK_LEFT | wxTAB_TRAVERSAL, name);
get_tabs_list().push_back(this);
}
~Tab(){
@ -242,7 +244,7 @@ public:
PageShp add_options_page(const wxString& title, const std::string& icon, bool is_extruder_pages = false);
virtual void OnActivate(){}
virtual void OnActivate();
virtual void on_preset_loaded(){}
virtual void build() = 0;
virtual void update() = 0;