On Tue, Nov 3, 2009 at 4:12 PM, Mateusz Czaplinski <czapko...@gmail.com> wrote: ... >> creation code in a Lua table and call it as appropriate. Don't forget >> to use wxWindow::Destroy() to delete the topmost old one and it will >> take care of its children. On the other hand if you are creating >> wxListCtrls with many items, that might be slowish and in that case I >> would create the window and immediately call Show(false) to hide it. >> Finally, you cannot reparent between top level windows if I remember >> correctly. > > "Topmost old one"? Um, I'm not sure what you mean by that (unless
For example, you may have f = wx.wxFrame(wx.NULL,...) p = wx.wxPanel(f, ...) t = wx.wxTextBox(p, ...) c = wx.wxChoice(p, ...) If you Destroy() the wxPanel p then it will delete both t and c for you. The parent window takes ownership of its children and if you are creating various layouts you need only Destroy() the 'topmost' window that contains all the children you have created. I merely made this comment since it can be easily overlooked. Regards, John ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ wxlua-users mailing list wxlua-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxlua-users