Skip to content

ShowPanel size issue #143

Description

@JohnRichard

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions