2013年11月份 BCGControlBar 的兩個MFC界面控件發布了v22,正式支持Windows 8.1和Visual Studio 2013。經過2個月的用戶檢驗,BCG團隊發布了修復和優化上一個版本的v22.1。下面是此版本的詳細更新內容:
1、新增Visual Studio 2013視覺管理器
盡管VS2013的顏色主題和VS2012的主題非常相似,但有些GUI控件還是不同的。變化的API有:
-
新增類CBCGPVisualManagerVS2013
-
BCGP_VISUAL_THEME新增三個成員:
-
BCGP_VISUAL_THEME_VS_2013_LIGHT: VS 2013-style light color theme.
-
BCGP_VISUAL_THEME_VS_2013_DARK: VS 2013-style dark color theme.
-
BCGP_VISUAL_THEME_VS_2013_BLUE: VS 2013-style blue color theme.

2、Grid Control

2.1 新增類似于Excel的單元格條件格式化,新增了以下格式化類型:
-
Data Bars
-
Color Scales
-
Icon Sets
2.2 新增Sparkline網格。它新增了一個CBCGPGridSparklineItem類去輕松添加圖表到網格中,這個功能的主要優點是:
-
支持各種圖表類型(線型、面積圖、柱狀圖、餅圖和氣泡圖等)
-
可在單個網格單元中使用不同的圖表類型
-
圖表配色方案會在網格顏色中自動創建
-
自定義數據標簽

3、Chart Control
3.1 新增Data Table。可以將網格中的圖表序列數據顯示在Chart X軸下方,這個功能只支持這幾種圖表:2D Line、2D Column、2D Area和Stock。

3.2 可將餅圖的小分片進行群組。要應用這個功能需調用到一個新方法:'CBCGPChartPieSeries::SetGroupSmallerSlices'
3.3 改進了餅圖、圓環圖的工具條外觀

3.4 新增了一系列顏色主題:CT_FLAT_2014_1, CT_FLAT_2014_2, CT_FLAT_2014_3 和 CT_FLAT_2014_4。
4、Ribbon Bar

4.1 新增自定義caption按鈕,CBCGPRibbonBar類新增以下新方法:
-
AddCaptionCustomButton
-
GetCaptionCustomButtonsCount
-
GetCaptionCustomButton
-
RemoveAllCaptionCustomButtons
4.2 Ribbon Panel可以聲明為"non-collapsible":'SetNonCollapsible' 和 'IsNonCollapsible'方法可以添加到CBCGPRibbonPanel類中。注意:這個屬性不能應用到包含了編輯框或combo box控件的Ribbon面板中。
4.3新增可以在Ribbon圖庫中繪制item的功能,CBCGPRibbonPaletteButton類新增兩個方法:
-
SetDrawDisabledItems
-
IsDrawDisabledItems
Fixes:
-
Chart control: CBCGPChartHistoricalLineSeries::EnableHistoryMode changes historical line data history depth.
-
CBCGPListBox correctly calculates caption and separator items height if control has LBS_OWNERDRAWVARIABLE style.
-
CBCGPPropList: fixed bug with clipping property group name.
-
CBCGPPropList::OnMouseWheel doesn't perform unnecessary grid scrolling if property dialog is opened.
-
CBCGPOutlookBar::SetButtonsFont correctly assigns a custom font to the underline tab control.
-
CBCGPToolbarMenuButton object correctly behaves now if 'm_bMenuOnly' attribute is TRUE.
-
CBCGPRibbonBar::OnMouseWheel. Fixed bug with scrolling tabs after the Ribbon customization.
-
CBCGPPropertyPage correctly processes controls layout if property sheet header has been specified and property sheet window is resizable.
-
Fixed bug in building libraries under VS 2013, "Windows XP" platform toolset.
標簽:
BCGMFC界面控件
本站文章除注明轉載外,均為本站原創或翻譯。歡迎任何形式的轉載,但請務必注明出處、不得修改原文相關鏈接,如果存在內容上的異議請郵件反饋至chenjj@fc6vip.cn
文章轉載自:慧都控件