Hi,

I have found in the wxAUI sample an event handler for closing panels. That is the place
to set the corresponding panel variable to nil.

...
this:Connect(wxaui.wxEVT_AUI_PANE_CLOSE, function(event) self:OnPaneClose(event) end)
...


function MyFrame:OnPaneClose(evt)
    local this = self.this

    if (evt:GetPane().name == wxT("MyPane")) then
        myPanelMyPane = nil
    end
end

I also see, how to connect specific events manually.

Thanks


Am 30.01.2009 um 15:14 schrieb Andre Arpin:



I have got it working to avoid opening a second window, but when I close the
pane, I didn't get it back reopened.
Also I have a local MyFrame and the panels are implemented in separate
files, so I don't know exactly if I could
access MyFrame to change a variable in that class to indicate pane closed.


if MyFrame then set the pane to close
          else message I do not have the frame
end

this would be a quick check
if you do not have MyFrame it should be nil.

Andre


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users


-- | Rapid Prototyping | XSLT Codegeneration | http://www.lollisoft.de
Lothar Behrens
Heinrich-Scheufelen-Platz 2
73252 Lenningen








------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to