
Ribbon Bar improves search and Grid adds custom color serialization.
Features
- Ribbon Bar
- Added new global variables which allow you to specify Ribbon tab and panel internal paddings.
- CBCGPRibbonSlider: Added horizontal slider text labels support.
- Improved Ribbon commands search: A search box can now be located on the right side of the Ribbon tabs (default) or on the Ribbon caption (both in full and compact modes). CBCGPRibbonCommandSearchOptions structure has the following new members:
- m_Location - specifies search box location.
- m_Icon - search box icon: light bulb or magnifier.
- m_clrHighlighted - background color of highlighted text in the search results menu.
- m_clrHighlightedText - foreground color of highlighted text.
- Since the search box can now be located on the frame, you can enable it for non-Ribbon-based applications (toolbar/menu-based applications with a frame caption bar enabled). For this kind of application, the framework scans all toolbars and menu bars for the best matches and displays search results in drop-down menu. You can customize this search by overriding new virtual method QueryElements in CBCGPFrameWnd or CBCGPMDIFrameWnd-derived class.
- CBCGPRibbonEdit: Added a new virtual method OnDrawIcon which allows you to draw a custom icon on the search mode.
- Ribbon Designer: The following new properties have been added:
- Height of the drop-down list in the combo boxes.
- Extended (right-side) text for the slider control.
- Command search options.
- Toolbars and Menus
- Improved disabled combo boxes appearance in some visual themes.
- CBCGPPopupMenu: Added highlighted (marked) text support.
- CBCGPToolbarButton: Added 2 new virtual methods QueryElements and AddToSearchResults; override them in CBCGPToolbarButton-derived class to customize command searching (available in the Frame Caption Bar).
- Dialogs and Forms
- CBCGPMessageBox: Improved window layout. Width / height ratio is now closer to the native Microsoft Windows message box.
- CBCGPDlgPopupMenu: A popup dialog can now be created without any corresponding controls such as menu button or ribbon button.
- CBCGPDlgPopupMenu: A new constructor "CBCGPDlgPopupMenu(CRuntimeClass* pRTI, LPCTSTR lpszTemplateName)" has been added in this version.
- Grid and Report Controls
- CBCGPGridColorItem: Added custom colors serialization (cell does not lose colors anymore after copying or moving).
- CBCGPGridDateTimeItem: Added CBCGPDateTimeCtrl::DTM_CHECKBOX flag support. A grid date/time cell can now be created with optional check box. While Data/Time picker has an unchecked state, CBCGPGridDateTimeItem shows a label for empty value.
- CBCGPGridDateTimeItem: The following new members have been added to CBCGPGridDateTimeItem class: m_bIsChecked and m_strNoDateLabel.
- BCGP_GRID_FILTERBAR_OPTIONS: If m_clrMarkBackground or m_clrMarkText is CLR_DEFAULT, a default (visual theme-based, returned by CBCGPVisualManager::GetMarkedTextColor) color is now used for displaying search results.
- CBCGPGridCtrl::GetVirtualRow method is now virtual.
- Controls
- CBCGPListBox: An icon can now be added to the caption.
- CBCGPListBox: AddCaption and AddSeparator methods now return the index of the added row.
- CBCGPStatic: Added 2 new versions of SetPicture method. First receives HBITMAP and second - CBCGPSVGImage.
- Miscellaneous
- CBCGPChartAxis: The size of resizing band is now DPI-aware.
- CBCGPGlobalUtils::DrawTextWithHighlightedArea: Added multi-line text support.
- CBCGPPropertyManager: Added support for storing / loading of the custom colors (class CBCGPColorProp) and check box (class CBCGPDateTimeProp).
- CBCGPSVGImage: GetSize method now has a new, optional parameter "BOOL bCheckBounds" (FALSE by default). If this parameter is TRUE and SVG does not have a specified size, the size of the bounding rectangle will be returned.
- CBCGPTabWnd: Improved underlined tab animation.
- CBCGPTagManager: Added a new method ParseColorArray, which converts a string with color values to array of COLORREF values.
- CBCGPVisualContainer: Added a new method SetScrollOffset which specifies scroll offset of the visual container.
- Examples and Samples
- BCGPControls: Added color property with custom colors set.
- BCGPGridExample: Improved copy/paste of some custom grid cells ("Cell types" view).
- BCGPMSOfficeDemo: Added command search demonstration: in Microsoft Office 2019 theme, command search appears on the Ribbon caption and can be minimized (as in Office 2022 applications).
- BCGPVisualStudioGUIDemo: Added command search demonstration.
- FrameCaptionDemo: Added command search demonstration.
- SVGViewDemo: CSVGPreview now displays files without predefined size and MDI tab tooltip contains a full path to .SVG file.