PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms controlpaint.drawfocusrectangle(g,r) colors

Reply

controlpaint.drawfocusrectangle(g,r) colors

 
Thread Tools Rate Thread
Old 10-02-2006, 07:46 PM   #1
m
Guest
 
Posts: n/a
Default controlpaint.drawfocusrectangle(g,r) colors


when using the 2-parameter form of this shared function, where the hell is it getting the colors from? neither of the colors appear in my system palette; one of them is black, which is not one of my system colors. the other is close to 2 of my "shadow" colors, but doesn't match. I really wish microsoft would document stuff like this, but they don't.
  Reply With Quote
Old 10-02-2006, 08:17 PM   #2
Sericinus hunter
Guest
 
Posts: n/a
Default Re: controlpaint.drawfocusrectangle(g,r) colors

Reflector shows the following code in System.Windows.Forms.dll:

public static void DrawFocusRectangle(Graphics graphics, Rectangle rectangle)
{
ControlPaint.DrawFocusRectangle(graphics, rectangle, SystemColors.ControlText, SystemColors.Control);
}

m wrote:
> when using the 2-parameter form of this shared function, where the hell
> is it getting the colors from? neither of the colors appear in my system
> palette; one of them is black, which is not one of my system colors. the
> other is close to 2 of my "shadow" colors, but doesn't match. I really
> wish microsoft would document stuff like this, but they don't.

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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