PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
controlpaint.drawfocusrectangle(g,r) colors
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Framework Forms
controlpaint.drawfocusrectangle(g,r) colors
![]() |
controlpaint.drawfocusrectangle(g,r) colors |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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.
|
|
|
|
#2 |
|
Guest
Posts: n/a
|
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. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

