I am building an XRC file with wxformbuilder - a frame and several panels at
the same level as the frame. I can get the frame successfully, but to get
the panels I find I have to pass the frame into the LoadPanel call, which
makes it display in the frame, which I don't want.

I want to have multiple panels that I add to a wxaui manager. Here is some
code that shows what I am attempting to do:

-- get frame
  xmlResource:LoadFrame(frame,wx.NULL,"mainFrame")
  frame.m_mgr = wxaui.wxAuiManager()
  frame.m_mgr:SetManagedWindow(frame)

-- when loadPanel is called, the panel shows up in my frame, which is what I
don't want.
  topPanel = xmlResource:LoadPanel(frame,'topPanel')

-- I want to add the panel here:

 
frame.m_mgr:AddPane(topPanel,wxaui.wxAuiPaneInfo():Name("nav"):Caption("nav"):Top())

I'm guessing I'm going about this all wrong. Can someone give me some
suggestions? I appreciate it.

Dennis
------------------------------------------------------------------------------
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

Reply via email to