|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
SystemBrushes and SystemPensDoes 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 I think it's abug ;-)
But worth point ing it out! maybe you should vote for it? http://lab.msdn.microsoft.com/vs2005 -- Show quoteThere 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 > 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 > > |
|||||||||||||||||||||||