Print Page | Close Window

Refresh Theme Change

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Skin Framework
Forum Description: Topics Related to Codejock Skin Framework
URL: http://forum.codejock.com/forum_posts.asp?TID=10777
Printed Date: 17 November 2024 at 1:36am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Refresh Theme Change
Posted By: markp.uk
Subject: Refresh Theme Change
Date 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.



Replies:
Posted By: joeliner
Date 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,


Posted By: Onur
Date 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



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