Print Page | Close Window

Obtaining ForeColor when using VisualThem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Shortcut Bar
Forum Description: Topics Related to Codejock Shortcut Bar
URL: http://forum.codejock.com/forum_posts.asp?TID=4399
Printed Date: 21 November 2024 at 12:34pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Obtaining ForeColor when using VisualThem
Posted By: John31
Subject: Obtaining ForeColor when using VisualThem
Date Posted: 12 June 2006 at 5:01pm

I have a shortcut bar with a label control overlayed at the end of it.  I am trying the set the forecolor of this label control to match the shortcut bar forecolor. 

When using the new VisualTheme the reported forecolor is not correct.  Is there a way to obtain the actual forecolor used by the shortcut bar when a specific theme is used.

For example:

Using this code:

SC1.VisualTheme = xtpShortcutThemeOffice2007
        
lblFilter.ForeColor = SC1.ForeColor
lblClear.ForeColor = SC1.ForeColor

If you look at the SC1.ForeColor it is 536870911 which is not a valid color.

Thoughts?



-------------
Regards

John Layton



Replies:
Posted By: John31
Date Posted: 14 June 2006 at 10:52am
Can someone at CJ please point me in the right direction or just tell it's a bug?

-------------
Regards

John Layton



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