Print Page | Close Window

Popup Frame Problem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=2724
Printed Date: 21 December 2024 at 10:13pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Popup Frame Problem
Posted By: Kenneth
Subject: Popup Frame Problem
Date Posted: 15 August 2005 at 1:22pm

If you try to add a splitter window to a popout frame, the splitter window and contents will overlay the menu and toolbar of the popout frame.   As an example, in the toolkit Advanced sample, I removed the logic to add the pane, and instead added a normal tree/list view as follows:

BOOL CPopoutFrame::OnCreateClient(LPCREATESTRUCT /*lpcs*/,CCreateContext* pContext)
 {
 // create splitter window
 if(!m_wndSplitter.CreateStatic(this,1,2))
      return(FALSE);
 if(!m_wndSplitter.CreateView(0,0,RUNTIME_CLASS(CGUI_Ex plorerTree),CSize(300,100),pContext))
      {
      m_wndSplitter.DestroyWindow();
      return(FALSE);
      }
 if(!m_wndSplitter.CreateView(0,1,RUNTIME_CLASS(CGUI_Ex plorerView),CSize(100,100),pContext))
      {
      m_wndSplitter.DestroyWindow();
      return(FALSE);
      }
 m_wndSplitter.ShowTopBorder(false,3);
 m_wndSplitter.SetSplitterStyle(XT_SPLIT_DOTTRACKER);

 m_pTreeView   = (CGUI_ExplorerTree*)m_wndSplitter.GetPane(0,0);
 m_pFolderView = (CGUI_ExplorerView*)m_wndSplitter.GetPane(0,1);
 m_pTreeCtrl   = &m_pTreeView->GetTreeCtrl();
 m_pListCtrl   = &m_pFolderView->GetListCtrl();
 m_pListCtrl->AssociateTree(m_pTreeCtrl);
 m_pTreeCtrl->AssociateList(m_pListCtrl);
 return(TRUE);
 }

The explorer tree and list view displays correctly, however the menu and toolbar cannot be seen.  What am I doing wrong, or is this a bug in the LoadFrame logic?

Ken

 

 

 




Replies:
Posted By: Oleg
Date Posted: 16 August 2005 at 2:48am
How you create toolbar? Usng CommandBars or LoadToolBar.

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Kenneth
Date Posted: 16 August 2005 at 12:11pm

Oleg

Never mind.  I found the problem.  The sample was creating a default view in the OnCreate section.  I removed that and now the splitters work correctly.

Ken

 

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net