好消息,VC界面庫 BCGControlBar Pro for MFC 和 BCGSuite for MFC最新發(fā)布v23.1。此次版本更新新增支持Animation Manager,Visual Designer新增自定義控件。更多精彩內(nèi)容請看下面的詳細(xì)介紹:
1、新增支持Animation
Windows IUIAnimationManager界面新增類 CBCGPAnimationManager 封裝功能。開發(fā)者只需幾行代碼就可以添加動(dòng)畫功能。
目前支持以下幾種動(dòng)畫類型:
- Legacy
- Accelerate/Decelerate
- Cubic
- Linear
- Smooth Stop
- Parabolic from Acceleration
動(dòng)畫功能已添加到BCG的以下幾個(gè)組件中:
- Chart control (序列外觀)
- Gauges (平滑的指針移動(dòng))
- Page transition manager (用于屬性表、Ribbon后臺視圖)
- WinUI Tiles
2、Visualization
改進(jìn)支持 high-DPI:
- 新增對125 and 150 DPI大小的內(nèi)置圖標(biāo)
- CBCGPGlobalUtils類新增'ScaleByDPI'擴(kuò)展助手
- CBCGPListBox::SetImageList新增一個(gè)新的可選參數(shù)'BOOL bAutoScale = FALSE'將它設(shè)置為TRUE時(shí)會自動(dòng)擴(kuò)展列表框圖像。
- 以下控件的high-DPI得到改進(jìn):
- Analog clock
- Breadcrumb control
- Date/time picker
- Drop-down toolbar button
- Duration control
- Advanced edit control
- Font combo box
- Grid control
- Outlook Bar
- Radial Menu
- Ribbon Gallery
- Rotation Control
- CBCGPVisualManager class新增以下三種方法:
- OnDrawProgressMarqueeDot: draws progress bar marquee dot.
- GetProgressMarqueeColor: gets progress bar marquee fill color.
- OnDrawTabDot: draws tab control page marker (slider mode).
3、Grid Control
- 改進(jìn)支持網(wǎng)格縮放。新增了一個(gè)虛擬方法——CBCGPGridCtrl::OnScaleChanged,可以根據(jù)當(dāng)前尺寸去自定義網(wǎng)格外觀。
- CBCGPGridView處理Visual管理器的變化,并自動(dòng)更新網(wǎng)格顏色主題。
- 新增CBCGPGridCheckItem::Toggle方法。
- CBCGPGridCtrl::SetColumnAlign新增支持HDF_BITMAP_ON_RIGHT flag。
4、Ribbon Bar
CBCGPRibbonComboBox: 新方法EnablePopupDialog允許Ribbon combo box和彈出對話框結(jié)合,如下圖:
Ribbon自定義對話框新增Visual Manager,如下圖:
Ribbon Designer支持帶ID的Ribbon Label控件。
5、Visual Container 和 Visual Designer
- Visual Designer新增支持自定義控件。
- CBCGPWndHostVisualObject class新增基本的顏色主題:SetColorTheme/GetColorTheme方法允許設(shè)置/獲取'CBCGPWndHostColors m_Colors'元素。
- Visual Designer可以指定控件的運(yùn)行時(shí)類,比如CBCGPGridCtrl-derived類。
- CBCGPVisualContainer class新增GetScrollOffset方法。
- CBCGPVisualContainer::AdjustLayout 和 CBCGPVisualContainer::AdjustScrollBars 方法現(xiàn)在是虛擬的。
- Visual Designer:新增復(fù)制/粘貼屬性網(wǎng)格組的功能。
6、Property Grid
- 使用控件的上下文菜單復(fù)制粘貼groups:CBCGPPropList::EnableContextMenu有一個(gè)新的可選參數(shù)'BOOL bAllowCopyPasteGroups'。
- CBCGPProp類新增AllowCopy/IsAllowCopy方法。
- 當(dāng)group的內(nèi)容發(fā)生變化時(shí),CBCGPPropList會發(fā)送以下新的通知給用戶:
- BCGM_PROPERTY_GROUP_CHANGING: wParam = Control ID, LPARAMP = pointer to CBCGPProp (group)
- BCGM_PROPERTY_GROUP_CHANGED: wParam = Control ID, LPARAMP = pointer to CBCGPProp (group)
- CBCGPProp::Redraw新增一個(gè)新的可選參數(shù)'BOOL bWithSubItems = FALSE',設(shè)置為True可以用所有的子項(xiàng)重繪屬性。
7、Coded UI Tests 和 MS Active 的易用性提升
- 修復(fù)了Coded UI Tests之前在tabbed CBCGPDockingControlBars中的運(yùn)行問題。
- CBCGPBaseTabWnd 更好的支持 MSAA "accDoDefaultAction" 方法。
更多詳細(xì)更新請移步
BCGControlBar Pro for MFC v23.1下載
【11月1日-11月30日】VC界面庫BCGControlBar Pro、.NET版年終大促 白金版+黃金版全線8折起!
標(biāo)簽:
BCGVC界面庫
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請郵件反饋至chenjj@fc6vip.cn