Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2006

Tip: Looking for answers? Try searching our database.

VisualStyleRenderer and Office 2003 colors

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Grafix - 08 Feb 2006 09:01 GMT
All -
(*)  Is it possible to get the gradient colors that Office 2003 uses for its
toolbar, programmatically?
For instance Outlook 2003's toolbar under Blue, has a Horizontal Gradient
fill from Argb(220,235, 254) to Argb(129,169,226). Can we get this value
directly using the the Theme APIs?

(*) Does Office compute each of these colors from a base color or does it
directly use the color specified for appropriate theme. If it does compute
these colors, can you please specify the formula applied to the base color.
If it retrieves using Theming APIs, can u pls. specify the partid/state and
the group name?

(*) With .NET 1.1, i tried invain to get these values from uxtheme (using
PInvoke) - but never succeeded. I thought VisualStyleRenderer (2.0) would
allow to get these values easily - but it is turning out to be futile.

(*) How do commercial vendors (SyncFusion / ComponentBar etc) compute the
colors for these toolbar components. Do they hard code the gradient color
values depending on the specific theme?

Googleing shows that couple of people who had asked the same question were
never answered before.
I hope i do get a response for this post.

Regardz
Grafix.
Steve - 12 Feb 2006 10:52 GMT
in .NET 2.0 theres a new Color set called ProfessionalColors which gives you
stuff like
       ProfessionalColors.ToolstripGradientBegin
       ProfessionalColors.ToolstripGradientEnd

hope this helps
Steve.

> All -
> (*)  Is it possible to get the gradient colors that Office 2003 uses for
[quoted text clipped - 26 lines]
> Regardz
> Grafix.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.