Contact Sales
Call center available M-F 9:00 - 4:00 US Eastern Time.
Case Studies

Datasoft Solutions selected Xtreme Toolkit Professional with Visual C++ over many...
Command Bars 2013 for Visual C++ MFC
Command Bars for Visual C++ MFC provides Windows developers with comprehensive, fully customizable menus, toolbars, ribbon and MDI tab windows to give your application a professional and modern interface.
Command Bars is included with the Toolkit Pro for Visual C++ evaluation.
Product Features
Codejock Command Bars provides several options to choose from including Office Style Ribbon, Visual Studio and Office Theme Support, Tabbed and Transparent Toolbars, MDI Tab and Gallery Controls, Accelerators / Hot Keys, Load / Save State, full Customization and much more!
Office 2010 Ribbon
- Office 2010 Ribbon Bar
- Office 2010 Backstage View
- Office 2010 Blue Theme
- Office 2010 Black Theme
- Office 2010 Silver Theme
- Windows 7 Blue Theme
- Ribbon Groups
- Group Option Button
- Smart Layout
- RTL Ribbon Support
- Gallery Control
- Glass Effect
- RibbonBar ScreenTips
- Variable Font Size
- Expandable Ribbon Bar
Theme Support
- Office 2000
- Office XP
- Office 2003
- Windows XP
- Office 2007
- Ribbon
- Office 2010 Blue
- Office 2010 Black
- Office 2010 Silver
- Windows 7 Blue
- Visual Studio 2003
- Visual Studio 2005
- Visual Studio 2008
- Visual Studio 2010
- Custom Colors
Tabbed Toolbars
Transparent Toolbars
Accelerators/Hot Keys
Image Attributes
- Alpha Icon Support
- Add, Delete, Modify Icons
- Normal, Hot, Disabled Icons
- Faded Icons
- Disabled Icons
- Icon Shadows
Load/Save State
Special Controls
Toolbar Customization
- Command Actions
- WYSIWIG Designer
- Multi-Language Support
- Custom Command Bar
- Popup Toolbars
- Dockable Toolbars
- MDI Buttons
Toolbar Buttons
Dynamic Customization
- Drag and Drop Commands
- Edit, Copy, Delete and Modify
- Dynamically Add and Remove
- Toolbar Customization
- User Defined Toolbars
- User Defined Options
Toolbar Options
- Toggle Large or Small Icons
- Show Text Below Icons
- Toggle Tool Tips
- Hide and Show Toolbars
- Closeable Toolbars
- Command Bar Grippers
Menu Customization
MDI Tabbed Interface
Tab Customization
Galleries
Supported Environments
Visual C++ 6.0
Visual C++ .NET 2002 (7.0)
Visual C++ .NET 2003 (7.1)
Visual C++ .NET 2005 (8.0)
Visual C++ .NET 2008 (9.0)
Visual C++ .NET 2010 (10.0)
Visual C++ .NET 2012 (11.0)
Supported Operating Systems
Windows 8, Windows 8 x64
Windows 7, Windows 7 x64
Vista, Vista x64
Windows XP, Windows XP x64
Windows NT 4.0, 2000, 2003, 2008
Windows 95, 98, 98SE, Me
Minimum Requirements
Visual C++ 6.0
Windows 95/NT
Office 2010 Style Ribbon Bar Control
Codejock Software's Xtreme RibbonBar provides Windows developers with the latest Microsoft Office 2010 style Ribbon Bar component. No longer will users need to fumble through confusing and boring menus. Xtreme RibbonBar includes enhanced navigation capabilities by grouping menu and toolbar commands into logical blocks that are arranged in tabular format.
GetCommandBars()->SetTheme(xtpThemeRibbon); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010BLUE.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeRibbon CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Blue.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeRibbon; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Blue.ini");
Office 2010 Style Backstage View
The backstage view is is displayed by the ribbon when the system tab is pressed. This is the new MS Office 2010 style menu and is used for displaying tasks that the user can perform on the document (i.e. printing and saving). The backstage view consists of 3 main sections, the "Tabs Pane" which contains commands and tabs, the "Control Pane" which contains controls related to the tabs in the Tabs Pane, and the "Optional Control Pane" which contains controls related to controls in the Controls Pane.
Office 2010 Style Blue Theme
The Office 2010 Style Ribbon Bar includes four different themes. The themes included are the Blue, Black, Silver and Blue Windows 7 styles.
GetCommandBars()->SetTheme(xtpThemeRibbon); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010BLUE.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeRibbon CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Blue.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeRibbon; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Blue.ini");
Office 2010 Style Black Theme
The Office 2010 Style Ribbon Bar includes four different themes. The themes included are the Blue, Black, Silver and Blue Windows 7 styles.
GetCommandBars()->SetTheme(xtpThemeRibbon); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010BLACK.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeRibbon CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Black.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeRibbon; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Black.ini");
Office 2010 Style Silver Theme
The Office 2010 Style Ribbon Bar includes four different themes. The themes included are the Blue, Black, Silver and Blue Windows 7 styles.
GetCommandBars()->SetTheme(xtpThemeRibbon); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010SILVER.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeRibbon CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Silver.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeRibbon; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Silver.ini");
Windows 7 Style Blue Theme
The Office 2010 Style Ribbon Bar includes four different themes. The themes included are the Blue, Black, Silver and Blue Windows 7 styles.
GetCommandBars()->SetTheme(xtpThemeRibbon); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Windows7.dll")); lpszIniFile = _T("WINDOWS7BLUE.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeRibbon CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Windows7.dll", "Windows7Blue.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeRibbon; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Windows7.dll", "Windows7Blue.ini");
Office 2010 Style Ribbon Groups
Groups are used to logically organize items in a Ribbon Bar. Group captions make it easy to identify what the items in a group are related to. Just about any type of item can be added to groups in the toolbar.
CXTPRibbonTab* pTabHome = pRibbonBar->AddTab(ID_TAB_HOME);
CXTPRibbonGroup* pGroupClipborad = pTabHome->AddGroup(ID_GROUP_CLIPBOARD);
pGroupClipborad->ShowOptionButton();
pGroupClipborad->SetIconId(ID_GROUP_BUTTONPOPUP);
pGroupClipborad->GetControlGroupOption()->SetID(ID_GROUP_CLIPBOARD_OPTION);
pGroupClipborad->SetControlsCentering();
CXTPControlPopup* pControlPaste = (CXTPControlPopup*)pGroupClipborad->Add(xtpControlSplitButtonPopup, ID_EDIT_PASTE);
pControlPaste->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_EDIT_PASTE);
pControlPaste->GetCommandBar()->GetControls()->Add(xtpControlButton, ID_EDIT_PASTE_SPECIAL);
CXTPControl* pControlCut = pGroupClipborad->Add(xtpControlButton, ID_EDIT_CUT);
pControlCut->SetKeyboardTip(_T("X"));
Dim TabWrite As RibbonTab
Dim GroupClipboard As RibbonGroup
Dim Control As CommandBarControl
Set TabWrite = RibbonBar.InsertTab(0, "&Home")
TabWrite.Id = ID_TAB_WRITE
Set GroupClipboard = TabWrite.Groups.AddGroup("&Clipboard", ID_GROUP_CLIPBOARD)
Set ControlPaste = GroupClipboard.Add(xtpControlSplitButtonPopup, ID_EDIT_PASTE, "&Paste")
Set Control = ControlPaste.CommandBar.Controls.Add(xtpControlButton, ID_EDIT_PASTE, "&Paste")
Control.ToolTipText = "hello"
ControlPaste.CommandBar.Controls.Add xtpControlButton, ID_EDIT_PASTE_SPECIAL, "&Paste Special"
ControlPaste.KeyboardTip = "V"
Set Control = GroupClipboard.Add(xtpControlButton, ID_EDIT_CUT, "&Cut")
Control.KeyboardTip = "X"
TabWrite = RibbonBar.InsertTab(0, "&Home");
TabWrite.Id = ID.ID_TAB_WRITE;
GroupClipboard = TabWrite.Groups.AddGroup("&Clipboard", ID.ID_GROUP_CLIPBOARD);
ControlPaste = (XtremeCommandBars.CommandBarPopup)GroupClipboard.Add(XtremeCommandBars.XTPControlType.xtpControlSplitButtonPopup, ID.ID_EDIT_PASTE, "&Paste", false, false);
ControlPaste.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_EDIT_PASTE, "&Paste", false, false);
ControlPaste.CommandBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_EDIT_PASTE_SPECIAL, "&Paste Special", false, false);
GroupClipboard.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_EDIT_CUT, "&Cut", false, false);
GroupClipboard.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_EDIT_COPY, "&Copy", false, false);
Control = GroupClipboard.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_FORMAT_PAINTER, "Format Painter", false, false);
Control.Enabled = false;
GroupClipboard.ShowOptionButton = true;
GroupClipboard.ControlGroupOption.TooltipText = "Show clipboard dialog";
GroupClipboard.IconId = ID.ID_EDIT_PASTE;
Office 2010 Style Ribbon Group Option Button
Option buttons can be added to a ribbon group's caption. Typically, when an option button is pressed a dialog should be displayed that is related to the controls in the group, but you can perform any action you wish such as displaying a popup menu.
pGroupClipborad->ShowOptionButton();
pGroupClipborad->GetControlGroupOption()->SetID(ID_GROUP_CLIPBOARD_OPTION);
GroupClipboard.ShowOptionButton = true
GroupClipboard.ControlGroupOption.TooltipText = "Show clipboard dialog"
GroupClipboard.ShowOptionButton = true;
GroupClipboard.ControlGroupOption.TooltipText = "Show clipboard dialog";
Office 2010 Style Smart Layout
Advanced smart layout abilities ensure that the Ribbon Bar makes the most efficient use of the available space. Smart layout allows each item to have multiple image sizes. The smart layout will display the largest images when enough room is available and automatically display the smaller icons when space is tight. When space is abundant, large images with item captions are displayed, if space is limited, then only small icons with no captions are displayed. Items are always only a few clicks away, groups with insufficient space are displayed as a popup button which displays the entire group as a popup. Xtreme RibbonBar is always adapting to its environment to provide a perfect fit.
Right-To-Left (RTL) Ribbon Support
The Ribbon Bar can be displayed from Right-To-Left (RTL), making the Ribbon accessible to all users, regardless of language. In addition to RTL languages, the Ribbon Bar provides support for up to 32 different languages.
Office 2010 Style Gallery Control
The Office 2010 style gallery control can be used in and toolbar, ribbon group, or popup menu. The gallery control displays a collection of picture or text items that can be scrolled and displayed in your popup menu, standard toolbar, or ribbon group. For example, a gallery can be used to create an Office 2010 font or size popup drop-down menu and popup color selector.
RibbonBar Glass Effect
Applications using the RibbonBar or Commandbars on Windows Vista or Windows 7 can use the Aero style glass effects. You can see right through the glass-like interface. On the Aero glass theme the RibbonBar's Quick Access Toolbar is drawn completely on the glass window frame.
Office 2010 Style CommandBar and RibbonBar ScreenTips
Accessing commands in the RibbonBar and Commandbars can now be done using ScreenTips. ScreenTips allow every feature in the RibbonBar and Commandbars to become accessible using the keyboard. Every command will be assigned a letter that becomes visible when the Alt key is pressed that allows you to activate that command when pressed.
pCommandBars->GetCommandBarsOptions()->bShowKeyboardTips = TRUE;
CommandBars.Options.KeyboardCuesShow = XtremeCommandBars.XTPKeyboardCuesShow.xtpKeyboardCuesShowWindowsDefault
CommandBars.Options.ToolBarAccelTips = true
CommandBars.Options.KeyboardCuesShow = XtremeCommandBars.XTPKeyboardCuesShow.xtpKeyboardCuesShowWindowsDefault;
CommandBars.Options.ToolBarAccelTips = true;
Office 2010 Style Variable Font Size
Both the RibbonBar and CommandBars can support a wide variety of font sizes with the option to automatically resize the icons to be consistent with the font size. If the size of the font is changed to extra large all the components of the RibbonBar will be adjusted to fit the new font size including properly sized images.
GetCommandBars()->GetPaintManager()->m_bUseOfficeFont = TRUE;
GetCommandBars()->GetPaintManager()->m_strOfficeFont = _T("Segoe UI");
GetCommandBars()->GetPaintManager()->SetFontHeight(12);
RibbonBar.FontHeight = 8 RibbonBar.RibbonPaintManager.WindowCaptionFont.Size = 8 RibbonBar.RibbonPaintManager.CaptionFont.Name = "Tahoma" RibbonBar.RibbonPaintManager.CaptionFont.Size = 8 CommandBars.Options.Font = "Tahoma" CommandBars.Options.Font.Size = 8 RibbonBar.TabPaintManager.Font = "Tahoma" RibbonBar.TabPaintManager.Font.Size = 8 CommandBars.PaintManager.RefreshMetrics
RibbonBar.FontHeight = 8; RibbonBar.RibbonPaintManager.WindowCaptionFont.Size = 8; RibbonBar.RibbonPaintManager.CaptionFont.Name = "Tahoma"; RibbonBar.RibbonPaintManager.CaptionFont.Size = 8; CommandBars.Options.Font = "Tahoma"; CommandBars.Options.Font.Size = 8; RibbonBar.TabPaintManager.Font = "Tahoma"; RibbonBar.TabPaintManager.Font.Size = 8; CommandBars.PaintManager.RefreshMetrics();
Expandable RibbonBar
Using the Office 2010 style Ribbon Bar you can be expanded or collapsed to save workspace area.
CXTPControl* pControlExpand = pRibbonBar->GetControls()->Add(xtpControlButton, ID_RIBBON_EXPAND);
pControlExpand->SetFlags(xtpFlagRightAlign);
CXTPControl* pControlMinimize = pRibbonBar->GetControls()->Add(xtpControlButton, ID_RIBBON_MINIMIZE);
pControlMinimize->SetFlags(xtpFlagRightAlign);
Set Control = AddButton(RibbonBar.Controls, xtpControlButton, ID_RIBBON_MINIMIZE, "Minimize the Ribbon", False, "Show only the tab names on the Ribbon.")
Control.Flags = xtpFlagRightAlign
Set Control = AddButton(RibbonBar.Controls, xtpControlButton, ID_RIBBON_EXPAND, "Expand the Ribbon", False, "Show the Ribbon so that it is always expanded even after you click a command.")
Control.Flags = xtpFlagRightAlign
Control = RibbonBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_RIBBON_MINIMIZE, "Minimize the Ribbon", false, false); Control.DescriptionText = "Show only the tab names on the Ribbon."; Control.Flags = XtremeCommandBars.XTPControlFlags.xtpFlagRightAlign; Control = RibbonBar.Controls.Add(XtremeCommandBars.XTPControlType.xtpControlButton, ID.ID_RIBBON_EXPAND, "Expand the Ribbon", false, false); Control.DescriptionText = "Show the Ribbon so that it is always expanded even after you click a command."; Control.Flags = XtremeCommandBars.XTPControlFlags.xtpFlagRightAlign;
Office 2000 Theme Support
Xtreme CommandBars provides your application with full Office 2000 theme support that gives your application the closest, most exact Office 2000 style themes of any 3rd party tool available today. Office 2000 is already built in, so you don't have to spend any extra time on this.
Office XP Theme Support
Xtreme CommandBars provides your application with full Office XP theme support that gives your application the closest, most exact Office XP style themes of any 3rd party tool available today. Office XP is already built in, so you don't have to spend any extra time on this.
Office 2003 Theme Support
Xtreme CommandBars provides your application with full Office 2003 theme support that gives your application the closest, most exact Office 2003 style themes of any 3rd party tool available today. Office 2003 is already built in, so you don't have to spend any extra time on this.
Windows XP Theme Support
Xtreme CommandBars provides your application with full Windows XP theme support that gives your application the closest, most exact Windows XP style themes of any 3rd party tool available today. Windows XP is already built in, so you don't have to spend any extra time on this.
Office 2007 Theme Support
Xtreme CommandBars provides your application with Office 2007 style theme support. Office 2007 style is already built in, so you don't have to spend any extra time on this.
GetCommandBars()->SetTheme(xtpThemeResource); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2007.dll")); lpszIniFile = _T("OFFICE2007BLUE.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeResource CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2007.dll", "Office2007Blue.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2007.dll", "Office2007Blue.ini");
Ribbon Theme Support
Xtreme CommandBars provides your application with Office style Ribbon theme support. This theme uses the Ribbon colors in your menus and toolbars. The Office Ribbon style is already built in, so you don't have to spend any extra time on this.
Office 2010 Blue Theme Support
Xtreme CommandBars provides your application with full Office 2010 Blue theme support that gives your application the closest, most exact Office 2010 Blue style themes of any 3rd party tool available today. Office 2010 Blue is already built in, so you don't have to spend any extra time on this.
GetCommandBars()->SetTheme(xtpThemeResource); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010BLUE.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeResource CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Blue.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Blue.ini");
Office 2010 Black Theme Support
Xtreme CommandBars provides your application with full Office 2010 Black theme support that gives your application the closest, most exact Office 2010 Black style themes of any 3rd party tool available today. Office 2010 Black is already built in, so you don't have to spend any extra time on this.
GetCommandBars()->SetTheme(xtpThemeResource); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010BLACK.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeResource CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Black.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Black.ini");
Office 2010 Silver Theme Support
Xtreme CommandBars provides your application with full Office 2010 Silver theme support that gives your application the closest, most exact Office 2010 Silver style themes of any 3rd party tool available today. Office 2010 Silver is already built in, so you don't have to spend any extra time on this.
GetCommandBars()->SetTheme(xtpThemeResource); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Office2010.dll")); lpszIniFile = _T("OFFICE2010SILVER.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeResource CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Office2010.dll", "Office2010Silver.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Office2010.dll", "Office2010Silver.ini");
Windows 7 Blue Theme Support
Xtreme CommandBars provides your application with full Windows 7 Blue theme support that gives your application the closest, most exact Windows 7 Blue style themes of any 3rd party tool available today. Windows 7 Blue is already built in, so you don't have to spend any extra time on this.
GetCommandBars()->SetTheme(xtpThemeResource); HMODULE hModule = AfxGetInstanceHandle(); LPCTSTR lpszIniFile = 0; hModule = LoadLibrary(m_csStylesPath + _T("Windows7.dll")); lpszIniFile = _T("WINDOWS7BLUE.INI"); ((CXTPOffice2007Theme*)GetCommandBars()->GetPaintManager())->SetImageHandle(hModule, lpszIniFile);
CommandBars.VisualTheme = xtpThemeResource CommandBarsGlobalSettings.ResourceImages.LoadFromFile App.Path & "\..\..\..\Styles\Windows7.dll", "Windows7Blue.ini"
XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeResource; CommandBarsGlobalSettings.ResourceImages.LoadFromFile(StylesPath() + "Windows7.dll", "Windows7Blue.ini");
Visual Studio 2003 Theme Support
Xtreme CommandBars provides your application with full Visual Studio 2003 theme support that gives your application the closest, most exact Visual Studio 2003 style themes of any 3rd party tool available today. Visual Studio 2003 is already built in, so you don't have to spend any extra time on this.
Visual Studio 2005 Theme Support
Xtreme CommandBars provides your application with full Visual Studio 2005 theme support that gives your application the closest, most exact Visual Studio 2005 style themes of any 3rd party tool available today. Visual Studio 2005 is already built in, so you don't have to spend any extra time on this.
Visual Studio 2008 Theme Support
Xtreme CommandBars provides your application with full Visual Studio 2008 theme support that gives your application the closest, most exact Visual Studio 2008 style themes of any 3rd party tool available today. Visual Studio 2008 is already built in, so you don't have to spend any extra time on this.
Visual Studio 2010 Theme Support
Xtreme CommandBars provides your application with full Visual Studio 2010 theme support that gives your application the closest, most exact Visual Studio 2010 style themes of any 3rd party tool available today. Visual Studio 2010 is already built in, so you don't have to spend any extra time on this.
Tabular Toolbars
Tabular toolbars eliminate the need for numerous toolbars crowded around an application. Menu items
can now be elegantly displayed in a toolbar. The contents of a toolbar can be accessed simply by clicking on its tab. Tabbed
toolbars are not only easy to use, but they increase the usable view area.
A Tabbed ToolBar contains all the functionality of standard toolbars. Many toolbars, called categories can be "tabbed" together.
Switching between toolbar categories is similar to a TabControl, you can now access all of your toolbar categories simply by clicking
on its tab. Normal toolbars can still be used outside of the TabbedToolbar if needed. The TabbedToolbar will also dock just like a normal toolbar.
// Create ToolBar CXTPTabToolBar* pToolBar = (CXTPTabToolBar*) pCommandBars->Add(_T("Standard"), xtpBarTop, RUNTIME_CLASS(CXTPTabToolBar)); pToolBar->SetBarID(IDR_MAINFRAME); CXTPTabManagerItem* pItem = pToolBar->InsertCategory(0, _T("Standard"), StandardIcons, _countof(StandardIcons)); pItem->SetImageIndex(IDR_MAINFRAME); pItem = pToolBar->InsertCategory(1, _T("Advanced"), AdvancedIcons, _countof(AdvancedIcons)); pItem->SetImageIndex(IDR_MAINFRAME); pItem = pToolBar->InsertCategory(2, _T("Other"), OtherIcons, _countof(OtherIcons)); pItem->SetImageIndex(IDR_MAINFRAME); pItem->SetTooltip(_T("Other icons"));
Dim TabToolBar as XtremeCommandBars.TabToolBar 'Add a Tabbed ToolBar Set TabToolBar = CommandBars.AddTabToolBar("Standard Tabbed Toolbar");
XtremeCommandBars.TabToolBar TabToolBar; //Add a Tabbed ToolBar TabToolBar = CommandBars.AddTabToolBar("Standard Tabbed Toolbar");
Shortcuts
Xtreme CommandBars allows you to define keyboard shortcuts for each Command Bar control. You can create a shortcut from any combination of keys on the keyboard. Xtreme CommandBars will automatically place the key combination of the shortcut in the menu next to the caption of the control.
Toggle Accelerator Tips
Xtreme CommandBars allows users to either turn accelerator tips on or turn them off. With the accelerator tips on, the accelerator key/ shortcut key combination will appear over your toolbar button next to the tool tip as you scroll over them with the mouse. If the accelerator tips are off, the accelerator key/ shortcut key combination will not be displayed in the tool tip.
Alpha Icon Support
Xtreme CommandBars includes alpha icons support that allows you to use smooth and semi-transparent icons, thus able to blend into the application for a more exact Windows XP look and feel. Xtreme Command Bar's ImageManager control allows you to easily add alpha icons to your toolbars and menus.
Add, Edit, Copy, Delete and Modify Command Bar Images
The Xtreme CommandBars ActiveX Image Manager control gives you greater control over toolbar and menu image customization by allowing you to add, edit, copy, delete and modify images during design time to give you total control over your Command Bar images.
The Image Manager control is similar to the Microsoft ImageList control, however, the Image Manager is a much more powerful tool. One of the most noticeable improvements is the Image Manager supports 32-bit Alpha Icons. When an image is added to the Image Manager, a "disabled" image and a "hot" image are automatically created for you. You can then individually edit the normal, disabled, and hot images. Another nice feature is that you can add multiple image sizes for each Command Bar control, for example, you can add 16x16 and 32x32 icons and simply set the LargeIcons property to true to automatically use the larger set of icons. You can use the SetIconSize Method to switch between image sizes and the Image Manager will automatically load the appropriate size images.
Hot, Disabled, and Normal Icons
Xtreme CommandBars allows you to easily add a separate icon that is displayed when your menu bar and toolbar controls are in a "normal", "hot", and "disabled" state. When the mouse pointer is moved over a control, the "hot" icon will be displayed, and if the control is disabled, the "disabled" icon will be used. Xtreme CommandBars will automatically create a "hot" and "disabled" icon for you, all you have to do is provide the "normal" icon. You can also add your own custom "hot" and "disabled" icons. When using the ImageManager control, you can add all three image states using the icon editor user interface at design time.
Disabled Menu and Toolbar Icons
Xtreme CommandBars offers disabled menu and toolbar icons so that users can easily distinguish between the commands that can be used at the moment and those that cannot. Disabled menu icons automatically take on a grayed look and are not highlighted on mouseover.
Save and Load Command Bar Layout to System Registry
Xtreme CommandBars allows you to easily save and load your Command Bar layout to and from the system registry. Only two lines of code are required to load and save your Command Bar layout. Xtreme CommandBars will save all of your Command Bar customizations.
Save and Load Command Bar Layout to String
Xtreme CommandBars allows you to easily save and load your Command Bar layout to and from a String. You have more control over what Command Bar customizations are saved/ loaded when saving/loading the layout to/from a string. When saving to a string you have the option of saving the customization settings from the Keyboard and Options pages of the Customize dialog, you can save only the layout of the Command Bar that have changed, and you can chose not to save the Command Bar layout. When loading the Command Bar layout from a string you have the option to restore the controls layout, options layout (Keyboard and Options pages of the Customize dialog), and whether to prompt the user before restoring the layout.
Some applications have multi user access. It can be useful to store a layout for each user in a personal file instead of the registry.
Add, Edit, Copy, Delete and Modify Command Bar Images
The Xtreme CommandBars ActiveX Image Manager control gives you greater control over toolbar and menu image customization by allowing you to add, edit, copy, delete and modify images during design time to give you total control over your Command Bar images.
The Image Manager control is similar to the Microsoft ImageList control, however, the Image Manager is a much more powerful tool. One of the most noticeable improvements is the Image Manager supports 32-bit Alpha Icons. When an image is added to the Image Manager, a "disabled" image and a "hot" image are automatically created for you. You can then individually edit the normal, disabled, and hot images. Another nice feature is that you can add multiple image sizes for each Command Bar control, for example, you can add 16x16 and 32x32 icons and simply set the LargeIcons property to true to automatically use the larger set of icons. You can use the SetIconSize Method to switch between image sizes and the Image Manager will automatically load the appropriate size images.
Custom Status Bar
Xtreme CommandBars comes with a built-in custom status bar. You have the ability to add panes to the custom status bar, and can access each individual pane to change the message that is displayed. The custom status bar will automatically use the current Command Bar theme. The custom status bar can be used to display other useful information such as Caps Lock, Scroll Lock, and Num Lock just by assigning the correct indicator to the status bar pane.
SetCustomTheme(new CCustomFancyTheme());
CommandBars.VisualTheme = XTPVisualTheme.xtpThemeOfficeXP
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.STDCOLOR_BTNFACE, RGB(107, 125, 145)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_TOOLBAR_FACE, RGB(113, 130, 151)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_SPLITTER_FACE, RGB(113, 130, 151)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_TOOLBAR_GRIPPER, vbWhite
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_SEPARATOR, RGB(107, 125, 145)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_TOOLBAR_TEXT, vbWhite
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_HIGHLIGHT, RGB(160, 170, 180)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_HIGHLIGHT_BORDER, RGB(202, 207, 213)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_HIGHLIGHT_CHECKED, RGB(125, 136, 152)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_HIGHLIGHT_CHECKED_BORDER, RGB(202, 207, 213)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_HIGHLIGHT_PUSHED_BORDER, RGB(105, 111, 119)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_HIGHLIGHT_PUSHED, RGB(116, 127, 141)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_MENUBAR_FACE, RGB(245, 245, 245)
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_MENUBAR_BORDER, 0
CommandBars.GlobalSettings.ColorManager.SetColor XTPColorManagerColor.XPCOLOR_3DSHADOW, 0
CommandBars.GlobalSettings.ColorManager.SetColor STDCOLOR_BTNSHADOW, 0
CommandBars.Options.LunaColors = False
CommandBars.RecalcLayout
public XtremeCommandBars.CommandBarsGlobalSettings CommandBarsGlobalSettings; public AxXtremeCommandBars.AxCommandBars CommandBars; CommandBarsGlobalSettings = new XtremeCommandBars.CommandBarsGlobalSettings(); CommandBars.VisualTheme = XtremeCommandBars.XTPVisualTheme.xtpThemeOfficeXP; CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.STDCOLOR_BTNFACE, (uint)System.Drawing.Color.FromArgb(107, 125, 145).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_TOOLBAR_FACE, (uint)System.Drawing.Color.FromArgb(113, 130, 151).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_SPLITTER_FACE, (uint)System.Drawing.Color.FromArgb(113, 130, 151).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_SEPARATOR, (uint)System.Drawing.Color.FromArgb(107, 125, 145).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_HIGHLIGHT, (uint)System.Drawing.Color.FromArgb(160, 170, 180).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_HIGHLIGHT_BORDER, (uint)System.Drawing.Color.FromArgb(202, 207, 213).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_HIGHLIGHT_CHECKED, (uint)System.Drawing.Color.FromArgb(125, 136, 152).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_HIGHLIGHT_CHECKED_BORDER, (uint)System.Drawing.Color.FromArgb(202, 207, 213).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_HIGHLIGHT_PUSHED_BORDER, (uint)System.Drawing.Color.FromArgb(105, 111, 119).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_HIGHLIGHT_PUSHED, (uint)System.Drawing.Color.FromArgb(116, 127, 141).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_MENUBAR_FACE, (uint)System.Drawing.Color.FromArgb(245, 245, 245).ToArgb()); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_MENUBAR_BORDER, 0); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.XPCOLOR_3DSHADOW, 0); CommandBars.GlobalSettings.ColorManager.SetColor (XTPColorManagerColor.STDCOLOR_BTNSHADOW, 0); CommandBars.Options.LunaColors = false; CommandBars.RecalcLayout();
Commandbar Actions
Commandbar actions eliminate the need to use the update notification\event to update\change the state and properties of an item that appears multiple places in your menus and toolbars. This also makes it easy to localize all the control with a single line of code.
Loading a Command Bar from a File
The Xtreme CommandBars Designer Studio allows you to visually create your command bar or ribbon. The command bar is saved to a file and only one line of code is needed to load the file in your application. With the Designer Studio, you can easily add/edit/delete accelerators, controls, icons, and toolbars.
Multi-Language Support
Xtreme CommandBars allows you to easily support multiple languages via a single line of code. Xtreme CommandBars supports up to 32 different languages, including Right-To-Left (RTL) support.
Adding Custom Controls
Xtreme CommandBars allows you to easily add your own custom control to your command bar. For example, you can place a progress bar on your toolbar, or you can display a form when a user clicks on a command bar control
Command Bar Button Styles
Xtreme CommandBars allows you to easily change the button style of your command bar controls. You can allow Xtreme CommandBars to choose the most suitable button style or you can pick your own style. Depending on the type of command bar control, you can display only the caption, the caption and icon, or just the icon.
Button Caption
Button Caption and Icon
Button Icons
Command Bar Split Button Popup Control
Xtreme CommandBars allows you to easily add a Split Button Popup control to your command bar. The Split Button Popup control allows you to add a group of controls that will be displayed when the arrow button is clicked. Once a control is selected from the drop-down list, you can simply click on the button half of the Split Button Popup to execute the code for the selected control. The Split Button Popup control can also be used to display a tear-off popup or tear-off toolbar. The Split Button Popup is automatically themed to match the currently set Command Bar theme.
Toggle Buttons
Xtreme CommandBars allows offers toggle buttons that users can easily see when commands in your menu and toolbar are "on" or "off". When a toggle button is clicked, you only need to update the "checked" property of the control. Controls in you menu bar will have a check mark next to them and toolbar controls will appear in a "selected" state.
MenuBar Toggle Buttons
ToolBar Toggle Buttons
Drag and Drop CommandBar Items
Xtreme CommandBars gives your application the functionality of drag and drop, which allows users to drag any command from a toolbar or menu and drop it into another. Just open the customize dialog and click on the command you want to move, drop it in the place you want it and continue working!
Edit, Copy and Delete Commands
Xtreme CommandBars gives you greater control over toolbar and menu customization by allowing you to edit, copy, delete and modify commands during runtime to give you total control over your application workspace. Xtreme Command Bar allows you to specify which Command Bar can be customized, this way they user can only customize the Command Bar you allow them to customize.
Add and Remove Toolbar Commands Dynamically
Xtreme CommandBars provides your application with the ability to add and remove toolbar commands dynamically, ensuring that users have all of the toolbar commands needed, and none that are not wanted. This gives your application the highest functionality with no confusion over the purpose over commands.
Toolbar Customization
The ‘Toolbar Customization’ feature provides a clean and professional way to customize your workspace. You can easily create new toolbars or modify existing ones with just a few mouse clicks so you can quickly and easily organize your workspace.
Toolbar During Customization
User Defined Command Bar Options
Xtreme CommandBars allows users to specify which command bar options they want to use. Users can specify how the menus are displayed, if large icons are used, menu animation, and accelerator tips in your application at run-time. This allows users to obtain a custom look and feel that best suits them.
Set Icon Size and Toggle Large or Small Toolbar Icons
With Xtreme CommandBars you always have the choice of selecting either small or large toolbar icons. You can easily set the size of the icons that will be used for small and large icons. Switching between the two can be accomplished with only a few mouse clicks, giving users the satisfaction of controlling the look of the application. With this feature there is no need to worry about running out of space for more icons in using the small icons and there is no need for squinting to determine which icon to use in using the large icons.
Large Icons
Hide and Show Toolbars
You can use Xtreme CommandBars to allow users to customize their application setup by showing and hiding toolbars. The user has the choice of which toolbars to show and which to hide, with the option of resetting to revert to the default appearance. When you right click on any command bar, a context menu is automatically displayed listing all of your command bars giving you the option to hide/un-hide or customize them.
Closeable Toolbars
Xtreme CommandBars allows you to specify whether a specific command bar can be closed. If a command bar is not closeable, you will not be able to close or hide the command bar. You can use this to make sure that important controls are always displayed.
Xtreme CommandBars supports persistent Toolbars
Xtreme CommandBars supports Closeable Toolbars
Command Bar Gripper
Xtreme CommandBars allows you to easily add/remove grippers to/from your Command Bar. Grippers are a graphical way to indicate to the user that the command bar can be "gripped" and moved or docked to another location.
Tear-Off Menus and Toolbars
Xtreme CommandBars can give your application a professional look with tear-off menus and toolbars that allow users to easily tear menus and toolbars off and float them in separate windows, providing a workspace that is easy to manipulate to anyone's preferences.
Popup Context Menus
Xtreme CommandBars allows you to show popup context menus anywhere on the screen. You can display any existing popup menu or command bar as popup menus, or you can create a temporary popup menu that is created and destroyed each time the popup menu is opened and closed. You can easily show a different popup when you right-click on different components of your application.
Microsoft® Style MDI Tabbed Interface
Xtreme CommandBars gives your Windows application a professional modern appearance with MDI tabs that are similar to many popular Microsoft® products. An MDI tabbed interface can be included in your application with a single line of code. You can easily turn on and off this feature via code. Xtreme CommandBars will automatically use themed tabs that match the currently set Command Bar theme. For your convenience, you can choose from several pre defined themes or create your own custom look.
.NET Style Tabbed Workspace Groups
Xtreme CommandBars allows you to easily create .NET style tabbed workspace groupings. You have the ability to group tabs vertically or horizontally within the tab workspace. Tabs can easily be moved from one group to another by a drag-and-drop or via code. You can easily add functionality for the user to create a new horizontal/vertical group and move a tab to the previous/next group simply by adding a control in your Command Bar.
Themed MDI Client Backcolor
Xtreme CommandBars will automatically use a themed MDI Client backcolor that matches the currently set Command Bar theme. You can easily enable/disable themed backcolor. If enabled, the backcolor of the MDIClient is calculated from current theme, if diabled the Form::BackColor property will be used.
Tab Layout
Xtreme CommandBars allows you to change the layout of your tabs with a single line of code. The tabs can be in a compressed, fixed, auto size, size to fit layout, multi-row, or rotated. You can change the layout of the tabs at any time in your program. The picture below show multi-row tabs.
Tab Color Styles
Xtreme CommandBars allows you to fully customize the appearance of your tabs by applying color styles. For your convenience, you can choose from several built in color styles such as Office 2010, Windows XP, Visual Studio 2010 and many more!
Tab Margins
Xtreme CommandBars allows you to manipulate the margins of the components that make up the tabs. You can change the button, header, client, and control margins of the tabs. The button margin is the area in the tab button surrounding the tab caption, the header margin is the area surrounding the tab buttons, the client margin is the area surrounding the client (area inside the tabs), and the control margin is the area surrounding all of the tabs and tab client area.
Galleries
The Office style CommandBar Gallery is a control that displays a collection of items that can be scrolled and displayed in a popup menu, such as pictures, font names, etc. CommandBar Gallery objects can be displayed in a standard toolbar, popup menu, combo, push button popup or a Ribbon Bar group.



