Print Page | Close Window

Refresh Metrics

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=14757
Printed Date: 04 July 2024 at 1:15pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Refresh Metrics
Posted By: markp.uk
Subject: Refresh Metrics
Date Posted: 16 July 2009 at 10:16am
In the help file for Xtreme Suite it states that you call the RefreshMetrics function of the dockingpane manager when applying a office 2007 theme, to repaint the components. As shown in the example below from the help manual :-

[Office2007Images Sample (Visual Basic)] This sample illustrates how to use the Office2007Images property to change the color used when the Office 2007 theme is applied.

    'Set to default Luna (blue) style.
    DockingPaneGlobalSettings.Office2007Images = ""
    DockingPaneManager.PaintManager.RefreshMetrics
    Refresh

    'Set to the Obsidian (black) style. Note that you need to include the
    'path to the Obsidian (black) image dll.
    DockingPaneGlobalSettings.Office2007Images = App.Path & "\Styles\Office2007Black.dll"
    DockingPaneManager.PaintManager.RefreshMetrics
    Refresh

    'Set to the Office 12 (aqua) style. Note that you need to include the
    'path to the Office 12 (aqua) image dll.
    DockingPaneGlobalSettings.Office2007Images = App.Path & "\Styles\Office2007Aqua.dll"
    DockingPaneManager.PaintManager.RefreshMetrics
    Refresh




Unfortunately this function does not seem to exist in the dockingpane manager, correct me if i'm wrong.


-------------
The weekend has landed.....

Long live the weekend!!!





Product: Xtreme SuitePro

(ActiveX) version 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6



Replies:
Posted By: Oleg
Date Posted: 17 July 2009 at 1:35am
Hi,
 
Sorry, seems it was copied from CommandBars code. Set VisualTheme property to Office2007 again to refresh.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: markp.uk
Date Posted: 17 July 2009 at 2:50am
Thanks Oleg, probelm solved.

-------------
The weekend has landed.....

Long live the weekend!!!





Product: Xtreme SuitePro

(ActiveX) version 16.3.1

Platform: Windows XP (32bit) - SP 3

Language: Visual Basic 6.0 SP6



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net