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 » CExtControlbar question Collapse All
Subject Author Date
tera tera Aug 5, 2009 - 1:30 AM

Hello.


I want to change a position of the ControlBar as needed.

Is not there any good method?



 



 


Technical Support Aug 10, 2009 - 7:43 AM

The CExtControlBar window supports 3 desired sizes. You can specify these sizes during your application initialization and before loading control bar states. This can be done with invocations of the CExtControlBar::SetInitDesiredSizeVertical(), CExtControlBar::SetInitDesiredSizeHorizontal() and CExtControlBar::SetInitDesiredSizeFloating:: methods and you can specify the equal desired sizes. But user resize bars at run-time and the desired sizes will become unequal. This is the feature of both Prof-UIS control bars and Visual Studio .NET / 2005 / 2008 dockable panes. The desired width are stored and loaded within the control bar states.


Technical Support Aug 7, 2009 - 3:06 AM

Please take a look at the context menus displayed over the control bar caption in the ProfStudio sample application. These menus are completely re-built. The menu structure displays the real control bar window structure created by Prof-UIS inside the main frame window. The popup sub menus correspond to dynamic control bar containers at different level. The control bar layout is analyzed by the CMainFrame::OnConstructPopupMenuCB() method which builds custom context menus. As you can see, it’s possible to determine where each bar is really located. But entire control bar data structure is always quite complex .

Technical Support Aug 5, 2009 - 10:35 AM

- You can use the CExtControlBar::DockControlBarInnerOuter() method for redocking the Class View bar into new inner position at any side.

- You can use the CExtControlBar::DockControlBarLTRB() method for redocking the Resource View bar into the same area with the Help Index control bar. You can also use this method for redocking the Class View bar into the same area with the Search Results bar.

There are only 5 types method for changing position of the CExtControlBar window:

1) The CExtControlBar::DockControlBarInnerOuter() method docks control bar into new inner or outer "circle" of bars inside the main frame window. The target and source bars can be in any state but auto hidden.

2) The CExtControlBar::DockControlBarLTRB() method docks control bar into the same area with other bar. The re-docked bar occupies part of other bar’s area at left/top/right/bottom. The target and source bars can be in any state but auto hidden.

3) The CExtControlBar::DockControlBarIntoTabbedContainer() method docks control bar into the same tabbed container with other. The target and source bars can be in any state but auto hidden.

4) The CExtControlBar::AutoHideModeSet() method auto-hides control bar or switches it back into simple docked state inside the main frame window.

5) The CExtControlBar::FloatControlBar() method switches control bar into the floating state. The bar can be in any state but auto hidden.

The CExtDynamicControlBar dynamic control bars also have the document mode and the CExtDynamicControlBar::BarStateSet() method should be used for changing states of dynamic control bar.


tera tera Aug 5, 2009 - 7:02 PM

I want to investigate the position of the bar


tera tera Aug 5, 2009 - 7:02 PM

At the size that appointed a bar, I want to let a bar dock.