Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Refresh Metrics
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Refresh Metrics

 Post Reply Post Reply
Author
Message
markp.uk View Drop Down
Groupie
Groupie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote markp.uk Quote  Post ReplyReply Direct Link To This Post Topic: Refresh Metrics
    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
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
markp.uk View Drop Down
Groupie
Groupie
Avatar

Joined: 23 August 2006
Status: Offline
Points: 38
Post Options Post Options   Thanks (0) Thanks(0)   Quote markp.uk Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.172 seconds.