A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Tags: , , , , , ,

Set Application Back colors based on Office Theme





 
 
Thread Tools Display Modes
  #1  
Old May 20th 08, 07:21 PM posted to microsoft.public.outlook.program_addins
Ponnu
external usenet poster
 
Posts: 3
Default Set Application Back colors based on Office Theme

Hi,

I am developing an addin to outlook 2007 and would like to set my form and
other control backgrounds based on the user's office theme(Blue, Silver,
Black). I could get the user's office selected theme from registry.

Could someone suggest a best way of applying this selecting theme to the
controls in my application?

Thanks & Regards
Ponnu
Ads
  #2  
Old May 20th 08, 08:52 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,274
Default Set Application Back colors based on Office Theme

You can't apply a theme to colors in Outlook form controls, if that's what
you're asking about. You'd have to read the color as an RGB color value and
apply that to the backcolor properties of your controls. Same thing goes for
any other controls you are using.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ponnu" wrote in message
...
Hi,

I am developing an addin to outlook 2007 and would like to set my form and
other control backgrounds based on the user's office theme(Blue, Silver,
Black). I could get the user's office selected theme from registry.

Could someone suggest a best way of applying this selecting theme to the
controls in my application?

Thanks & Regards
Ponnu


  #3  
Old May 21st 08, 10:11 AM posted to microsoft.public.outlook.program_addins
Ponnu
external usenet poster
 
Posts: 3
Default Set Application Back colors based on Office Theme

Hi Ken,

Yes, I have RGB equivalents for all the three themes.

Is the only way to set the background color for all my controls in the addin
like my form, grid and other controls?

or is there a way so I could set the RGB color in one place and all my
controls would inherit them.

Thanks & Regards
Ponnu

"Ken Slovak - [MVP - Outlook]" wrote:

You can't apply a theme to colors in Outlook form controls, if that's what
you're asking about. You'd have to read the color as an RGB color value and
apply that to the backcolor properties of your controls. Same thing goes for
any other controls you are using.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ponnu" wrote in message
...
Hi,

I am developing an addin to outlook 2007 and would like to set my form and
other control backgrounds based on the user's office theme(Blue, Silver,
Black). I could get the user's office selected theme from registry.

Could someone suggest a best way of applying this selecting theme to the
controls in my application?

Thanks & Regards
Ponnu



  #4  
Old May 21st 08, 02:22 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 3,274
Default Set Application Back colors based on Office Theme

As far as I know you have to set things control by control.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ponnu" wrote in message
...
Hi Ken,

Yes, I have RGB equivalents for all the three themes.

Is the only way to set the background color for all my controls in the
addin
like my form, grid and other controls?

or is there a way so I could set the RGB color in one place and all my
controls would inherit them.

Thanks & Regards
Ponnu


  #5  
Old May 21st 08, 02:41 PM posted to microsoft.public.outlook.program_addins
Ponnu
external usenet poster
 
Posts: 3
Default Set Application Back colors based on Office Theme

Thanks Ken.

"Ken Slovak - [MVP - Outlook]" wrote:

As far as I know you have to set things control by control.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Ponnu" wrote in message
...
Hi Ken,

Yes, I have RGB equivalents for all the three themes.

Is the only way to set the background color for all my controls in the
addin
like my form, grid and other controls?

or is there a way so I could set the RGB color in one place and all my
controls would inherit them.

Thanks & Regards
Ponnu



 




Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
outlook 2007 custom form colors/xp theme code_runner Outlook - Using Forms 1 February 24th 08 03:01 PM
Getting theme colors Mike Add-ins for Outlook 0 January 8th 08 04:22 PM
Black theme dumps ribbon-can't get it back in Out2007? Jonathan Outlook - Installation 3 January 3rd 07 03:43 PM
Office 2007 Colors Scheme C. Moya Outlook - General Queries 20 December 10th 06 01:58 PM
Office 2007 colors suck. SSUlmtd Outlook - Installation 1 July 6th 06 02:29 PM


All times are GMT +1. The time now is 06:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2008 Outlook Banter, part of the NewsgroupBanter project.
The comments are property of their posters.
Babb Fest - Credit Cards - Credit Cards - Online Image Resizer - Car Insurance