Print Page | Close Window

BUG (Repaint/Refresh problem)

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10983
Printed Date: 07 October 2024 at 10:58pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: BUG (Repaint/Refresh problem)
Posted By: Onur
Subject: BUG (Repaint/Refresh problem)
Date Posted: 10 June 2008 at 10:15pm
Hi,

I found a bug about repainting in the commandbars control.
Here is the scenario to reproduce:

1. Set the commandbars visual theme to XTPVisualTheme.xtpThemeOffice2003
2. Set the STDCOLOR_BTNFACE color to red or smth.. via SetSpecialColor method

But the control is not repainted...
I tried to refresh/invalidate the form, commandbars... didn't help..
...also tried CommandBars.RecalcLayout() .. still nothing..

IF you restart the application
OR
at run-time, right-click the commandbars and click customize;
then you get the result.. it is repainted..
but I couldn't find a workaround to do this programmatically..

..and one more thing:
this repainting problem does not occur with every visualtheme..
it occurs with XTPVisualTheme.xtpThemeOffice2003 and a couple of other themes..

Please inform or confirm..
thanks..


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit) - SP 2
Language: Visual C# .NET



Replies:
Posted By: Onur
Date Posted: 13 June 2008 at 10:45am
anyone?.. staff?..


-------------
Product: Xtreme SuitePro (ActiveX) version 12.0.1
Platform: Windows XP (32bit) - SP 2
Language: Visual C# .NET


Posted By: Oleg
Date Posted: 13 June 2008 at 12:13pm
Hi,
 
Try to set VisualStheme after you change color.


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


Posted By: Onur
Date Posted: 13 June 2008 at 6:58pm
No.. It doesn't work..
Just try to reproduce the problem according to my previous post and you'll see the problem..


-------------
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