Outlook Banter

Outlook Banter (http://www.outlookbanter.com/)
-   Add-ins for Outlook (http://www.outlookbanter.com/add-ins-outlook/)
-   -   How to read color of form region title? (http://www.outlookbanter.com/add-ins-outlook/95929-how-read-color-form-region.html)

Mark B[_2_] October 13th 09 12:43 AM

How to read color of form region title?
 
I want my combobox text to be the same color as the form region title.

How can I programmatically read that color?

And other Outlook screen item colors for that matter?

TIA

Ken Slovak - [MVP - Outlook] October 13th 09 02:49 PM

How to read color of form region title?
 
As far as I know the only way to do that is to get the screen coordinates of
a point and read the pixel at that point using API calls. There might be
something also in the CLR to read screen pixels, I'm guessing there is but I
haven't tried that so I can't be positive.

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


"Mark B" wrote in message
...
I want my combobox text to be the same color as the form region title.

How can I programmatically read that color?
And other Outlook screen item colors for that matter?

TIA




All times are GMT +1. The time now is 12:28 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2006 OutlookBanter.com