Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Skin Framework
  New Posts New Posts RSS Feed - Refresh Theme Change
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Refresh Theme Change

 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 Theme Change
    Posted: 26 May 2008 at 2:38am
When changing the colour of the office 2007 theme, the commandbars has the method refreshmetrics to repaint the controls with the new colour set, how can you obtain the same functionality with the DockingPaneManager, TabControl and PropertyGrid???? You can change the colour set with the office2007imges property but i cannot get these controls to repaint themselves with the new colour set, apart from restarting the program.
Back to Top
joeliner View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 June 2006
Status: Offline
Points: 273
Post Options Post Options   Thanks (0) Thanks(0)   Quote joeliner Quote  Post ReplyReply Direct Link To This Post Posted: 26 May 2008 at 3:03am
Try setting the visualtheme of the control, this in essence repaints the control. for example;

tabmanager1.PaintManager.Appearance = xtpTabAppearancePropertyPage2007

regards,
Back to Top
Onur View Drop Down
Groupie
Groupie


Joined: 17 August 2005
Status: Offline
Points: 37
Post Options Post Options   Thanks (0) Thanks(0)   Quote Onur Quote  Post ReplyReply Direct Link To This Post Posted: 10 June 2008 at 9:51pm
Call the RecalcLayout() method... the control will refresh/repaint itself..
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit) - SP 2
Language: Visual C# .NET
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.171 seconds.