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 General Discussion » Tabbed Toolbars Collapse All
Subject Author Date
Bob Sabiston Aug 9, 2005 - 1:38 PM

Hello:


I’m trying to choose a GUI suite for a development effort our team will be undertaking shortly.  One of the things we require is a tabbed toolbar -- a good example is the TabbedToolbar sample from BCGSoft.


How would you create this using Prof-UIS?


I’ve tried adding CExtToolControlBars as child pages to a CExtTabPageContainerWnd which is then placed inside a CExtControlBar.  Two immediate issues are:


1) While I can control the size of the CExtTabPageContainerWnd and toolbars, I cannot seem to control the size of the containing CExtControlBar.


2) I can’t seem to get the commands from the toolbars routed to the main window.


 


 


 


 

Technical Support Aug 11, 2005 - 11:12 AM

To code tabbed toolbars is not difficult for us but may be complicated for you. There are lots of details which you don’t need to know in non-GUI programming. For instance, to make toolbars update and deliver their commands correctly, you should invoke their SetOwner() methods and specify a pointer to the main frame window as a method parameter. So, we thought it would be much better to do all this ourselves. Please download a sample project and a compiled application, which demonstrate ready-to-use beta implementation of tabbed toolbars.

The sample project includes the source code for the CExtTabbedToolControlBar, CExtTabbedToolControlBarFlat, CExtTabbedToolControlBarOneNote and CExtTabbedToolControlBarWhidbey classes. All these classes implement tabbed toolbars using different types of the tab page container window. The tabbed toolbar is an extended version of our toolbar in the full row mode with the tab page container window inside. Each tab page container window contains toolbars. You can learn how to initialize tabbed toolbars in the CMainFrame::OnCreate() method.