Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - BUG (Repaint/Refresh problem)
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

BUG (Repaint/Refresh problem)

 Post Reply Post Reply
Author
Message
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 Topic: BUG (Repaint/Refresh problem)
    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
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: 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
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: 13 June 2008 at 12:13pm
Hi,
 
Try to set VisualStheme after you change color.
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 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
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.250 seconds.