Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Group tabbing of Dynamic ControlBars. Collapse All
Subject Author Date
Debabrata Mukherjee Aug 21, 2007 - 9:45 AM

Can you plz suggest us how hav u managed to group-tab dynamic controlbars as shown in the "Dynamic Control Bars" sample in ur website. I have ur samples project. "MDI_Dynamic Bars" but I can see only the tab grouping of pages on the SDI/MDI docs. But the snap in ur website shows us that u have managed to tab grp them even in the area covwered by the "Persistent Bar" also(Left side bottom of the snap). How is it possible.I want to tabgrp more than one control bar in that way.

Please provide us with some sample also if possible.

Debabrata Mukherjee Aug 24, 2007 - 8:28 AM

I have sent you a mail with the details again . Hope it helps.

Debabrata Mukherjee Aug 23, 2007 - 9:54 AM

The issue now is my ControlBars are not part of the mainframe but are invoked frm another OCX. So using methods like DockControlBarIntoTabbedContainer cause exception. The present arch. of my application is:

A Main CtrlBar is created in the MainFrame Oncreate() method.
Then a CView is made over it.
On this CView we have a COleCtrl class. And on this OleControl class there are three CWnd classes. I want to make these CWnd classes to tabgrouped CExtControlBars. So first when I create the ControlBars, they seem fine.Next When I try to make them Tabgroup by calling the methods - DockControlBarIntoTabbedContainer just after the creation, the application is failing as obviously I dont have the pointers
pApp for m_dataFrameWP. How Do I resolve this.



Hope yu got the issue.

Technical Support Aug 23, 2007 - 12:35 PM

You can create an OCX control in a resizable control bar and you should not have any problems with this. You can find control bars with a web browser control in the ProfStudio sample. What OCX controls exactly you are using? If they are your controls and they based on MFC, ensure your controls do MFC state switching correctly. We may need to debug your application failures to clarify what is wrong.

Suhai Gyorgy Aug 22, 2007 - 1:54 AM

Regular CExtControlBars can also be tab docked with each other, you don’t need Dynamic control bars for that. To tab group one control bar into another, you can use the CExtControlbar::DockControlBarIntoTabbedContainer method. TabbedBars sample shows how to use it, you can find the DockControlBarIntoTabbedContainer calls in CMainFrame::OnCreate method, near CExtControlBar::ProfileBarStateLoad.

Users can also tab dock control bars. Grab any control bar by its caption and pull it over another control bar. When the mouse pointer is over the caption area, the gray "rectangle" - which would show the final position of the control bar being moved - will get a tab. That’s when you have to release the mouse button and the 2 control bars will be tab docked. A third control bar can be tab docked if it is pulled over the tab area of the previous group.

Visual Studio 2005 theme has different appearance while docking the control bars. Any theme can use this docking behavior, if you like it. (Personally, I prefer this one) Read this FAQ: How to switch between the Visual Studio .NET and Visual Studio 2005 docking behavior of control bars?