I was having a problem which resulted in "Show Panel" not actually showing the panel, or showing only the X button. Here is my solution:
--- a/src/GoPanelPanel.cpp
+++ b/src/GoPanelPanel.cpp
@@ -55,7 +55,8 @@ GoPanelPanel::GoPanelPanel(wxWindow *parent) : wxPanel(parent) {
m_panel = NULL;
m_isFirstRemoval = true;
- m_guiRepresentation = new GUIPanelRepresentation(this, wxT("Panel"));
- m_guiRepresentation = new GUIPanelRepresentation(::wxGetApp().m_frame, wxT("Panel"));
wxBoxSizer *panelSizer = new wxBoxSizer(wxVERTICAL);
@@ -620,10 +620,9 @@ void GoPanelPanel::OnShowPanelBtn(wxCommandEvent& WXUNUSED(event)) {
if (!m_guiRepresentation->IsShown()) {
-
m_guiRepresentation->Destroy();
-
m_guiRepresentation = new GUIPanelRepresentation(this, wxT("Panel"));
m_guiRepresentation->SetCurrentPanel(m_panel);
m_guiRepresentation->Show();
m_guiRepresentation->DoUpdateLayout();
}
}
The Show panel button now works after recompiling. I'm not sure if this is helpful to others or not.
I was having a problem which resulted in "Show Panel" not actually showing the panel, or showing only the X button. Here is my solution:
--- a/src/GoPanelPanel.cpp
+++ b/src/GoPanelPanel.cpp
@@ -55,7 +55,8 @@ GoPanelPanel::GoPanelPanel(wxWindow *parent) : wxPanel(parent) {
m_panel = NULL;
m_isFirstRemoval = true;
wxBoxSizer *panelSizer = new wxBoxSizer(wxVERTICAL);
@@ -620,10 +620,9 @@ void GoPanelPanel::OnShowPanelBtn(wxCommandEvent& WXUNUSED(event)) {
if (!m_guiRepresentation->IsShown()) {
}
The Show panel button now works after recompiling. I'm not sure if this is helpful to others or not.