Print Page | Close Window

Windows Theme Change Colors

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=18929
Printed Date: 23 November 2024 at 10:06pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Windows Theme Change Colors
Posted By: Willowmaster
Subject: Windows Theme Change Colors
Date Posted: 09 September 2011 at 6:54am
When changing the windows theme to a highcontrast theme the reportcontrol background color won't be updated. Is there a way to tell the reportcontrol to update its systemcolors? I've tried these function:
- ColorManager.SetColor(lngColorLoop, ColorManager.Color(lngColorLoop))
- Paintmanager.Refreshmetrics
- Redraw
 
Thanks in advance!


-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0






Replies:
Posted By: Willowmaster
Date Posted: 21 September 2011 at 4:41am

Alright. I found out that this is a control problem. The report control is on a usercontrol and the usercontrol is on a picturebox therefore does not receive the right messages to update its colors. Without the picturebox the reportcontrol updates its colors but it doesn't redraw until you select the form the reportcontrol is on.

Fonts are not updated at all. When you set a different or a bigger font the reportcontrols font stays the same. Even after a Paintmanager.Refreshmetrics and then a redraw.


-------------
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0






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