PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms VisualStyleRenderer and Office 2003 colors

Reply

VisualStyleRenderer and Office 2003 colors

 
Thread Tools Rate Thread
Old 08-02-2006, 09:01 AM   #1
=?Utf-8?B?R3JhZml4?=
Guest
 
Posts: n/a
Default VisualStyleRenderer and Office 2003 colors


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.


  Reply With Quote
Old 12-02-2006, 10:52 AM   #2
Steve
Guest
 
Posts: n/a
Default Re: VisualStyleRenderer and Office 2003 colors

in .NET 2.0 theres a new Color set called ProfessionalColors which gives you
stuff like
ProfessionalColors.ToolstripGradientBegin
ProfessionalColors.ToolstripGradientEnd

hope this helps
Steve.

"Grafix" <Grafix@discussions.microsoft.com> wrote in message
news:92081D98-B765-4041-A739-BF5BA9F96A11@microsoft.com...
> 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.
>
>



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off