aui manager

Rick Sivernell res005ru at verizon.net
Thu Sep 20 08:35:47 PDT 2007


anyone who knows aui


I have created a new frame, I want to install a custom control from a dll 
into a auimanager.addpane(..). I have used the demo program as a guide. My 
problem is that a moveable panel is not created for my control, it does display
the control ok. My control contains a normal wxNoteBook widget. Using _WXMSW__.

m_pNoteBookFrame is my new control from dll
  m_pNoteBookFrame = new CClassViewFrame(this,2002,wxPoint(-1,-1), 
                                    wxSize(GetClientSize().x / 4,GetClientSize().y),
                                    g_Notebook_Style);//,wxT("notebook"));

  m_mgr.AddPane(m_pNoteBookFrame,wxAuiPaneInfo().Name(wxT("LstView")).
                Caption(wxT("List View")).Left().Layer(1).Position(1).
                Hide().Right().RightDockable(true).Bottom().BottomDockable(true).
                Top().TopDockable(true).Dockable(true).Resizable().Movable(true).
                BestSize(wxSize(GetClientSize().x / 4,GetClientSize().y)).Layer(1).
                CloseButton(true).MaximizeButton(true));

CreateNotebook from demo program
  m_mgr.AddPane(CreateNotebook(), wxAuiPaneInfo().Name(wxT("Editor Notebook")).
                Caption(wxT("Editor(s)")).Centre().CentrePane().PaneBorder(true).
                BestSize(wxSize(( GetClientSize().x - (GetClientSize().x / 4)),GetClientSize().y)).
                Layer(1).Position(1).BestSize(wxDefaultSize));


  m_mgr.GetPane(wxT("List View")       ).Show().Left().Layer(0).Row(0).Position(0);
  m_mgr.GetPane(wxT("Editor Notebook")).Show();  
  // make some default perspectives


-- 
 Rick Sivernell
 Dallas, Texas  75287
 972 306-2296
 res005ru at verizon.net
 Registered Linux User
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scrn.JPG
Type: image/jpeg
Size: 34463 bytes
Desc: not available
Url : http://lists.wxwidgets.org/pipermail/wx-users/attachments/20070920/4da4eab6/scrn.jpeg


More information about the wx-users mailing list