Home All Groups Group Topic Archive Search About

SystemBrushes and SystemPens

Author
14 Oct 2005 10:15 AM
Larry Lard
Does anyone know why there is a mismatch between the colours to be
found in SystemBrushes and those to be found in SystemPens? For
example, there is a SystemPens.GrayText but there isn't a
SystemBrushes.GrayText.

In total there are 21 SystemBrushes, but only 15 SystemPens (not a
simple subset though). One might think, "the Pens are for colours you
might want to draw with, whereas the Brushes are for colours you might
want to paint with" - but you DrawString with a Brush, and so there
should be a GrayText Brush, shouldn't there?

--
Larry Lard
Replies to group please

Author
17 Oct 2005 3:35 PM
Lloyd Dupont
I think it's abug ;-)
But worth point ing it out!
maybe you should vote for it?
http://lab.msdn.microsoft.com/vs2005

--
There are 10 kinds of people in this world. Those who understand binary and
those who don't.
Show quote
"Larry Lard" <larryl***@hotmail.com> wrote in message
news:1129284935.243629.159560@g49g2000cwa.googlegroups.com...
> Does anyone know why there is a mismatch between the colours to be
> found in SystemBrushes and those to be found in SystemPens? For
> example, there is a SystemPens.GrayText but there isn't a
> SystemBrushes.GrayText.
>
> In total there are 21 SystemBrushes, but only 15 SystemPens (not a
> simple subset though). One might think, "the Pens are for colours you
> might want to draw with, whereas the Brushes are for colours you might
> want to paint with" - but you DrawString with a Brush, and so there
> should be a GrayText Brush, shouldn't there?
>
> --
> Larry Lard
> Replies to group please
>
Author
17 Oct 2005 3:53 PM
Larry Lard
Aha! On checking the 2005 docs online, I see that there *is* a
SystemBrushes.GrayText in framework 2.0, so it would appear I wasn't
the first person to spot this one :) In fact a quick scan suggests that
there is now a SystemBrushes and SystemPens member for every
SystemColor. So there's my fix.


Lloyd Dupont wrote:
Show quote
> I think it's abug ;-)
> But worth point ing it out!
> maybe you should vote for it?
> http://lab.msdn.microsoft.com/vs2005
>
> --
> There are 10 kinds of people in this world. Those who understand binary and
> those who don't.
> "Larry Lard" <larryl***@hotmail.com> wrote in message
> news:1129284935.243629.159560@g49g2000cwa.googlegroups.com...
> > Does anyone know why there is a mismatch between the colours to be
> > found in SystemBrushes and those to be found in SystemPens? For
> > example, there is a SystemPens.GrayText but there isn't a
> > SystemBrushes.GrayText.
> >
> > In total there are 21 SystemBrushes, but only 15 SystemPens (not a
> > simple subset though). One might think, "the Pens are for colours you
> > might want to draw with, whereas the Brushes are for colours you might
> > want to paint with" - but you DrawString with a Brush, and so there
> > should be a GrayText Brush, shouldn't there?
> >
> > --
> > Larry Lard
> > Replies to group please
> >

AddThis Social Bookmark Button