Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RGB color listings on Win95/NT?

0 views
Skip to first unread message

Stewart Allen

unread,
Dec 17, 1996, 3:00:00 AM12/17/96
to

Is it possible to have widgets return their default color in RGB
format on Win95 and NT? It is making the implementation of a meaningful
color browser very difficult.

I understand the use of "System*" color names to accomodate user-defined
color-schemes, but there needs to be a portable way of getting at this.

--
-stewart-

Scott Stanton

unread,
Dec 19, 1996, 3:00:00 AM12/19/96
to

In article <596ijs$o...@epcot.harlequin.com>,

Stewart Allen <sal...@pixel.harlequin.com> wrote:
> Is it possible to have widgets return their default color in RGB
> format on Win95 and NT? It is making the implementation of a meaningful
> color browser very difficult.

Under Unix, you'll get default colors that have non-RGB names, too
(e.g. "black"). The correct way to get the RGB values for a given
color is:

winfo rgb <window> <color>

For example, on my system I get:

% winfo rgb . SystemButtonFace
49152 49152 49152

--Scott

0 new messages