Would you Adam & Eve it?
-
MS forgot to add ButtonFace, ButtonHighlight & ButtonShadow to the KnownColors enum in .Net They've remembered to add them in for Longhorn though, isn't that handy! :mad:
-
MS forgot to add ButtonFace, ButtonHighlight & ButtonShadow to the KnownColors enum in .Net They've remembered to add them in for Longhorn though, isn't that handy! :mad:
Well, if this is your major gripe about .NET, I think it's actually a flattering remark... Due to technical difficulties my previous signature, "I see dump people" will be off until further notice. Too many people were thinking I was talking about them... :sigh:
-
Well, if this is your major gripe about .NET, I think it's actually a flattering remark... Due to technical difficulties my previous signature, "I see dump people" will be off until further notice. Too many people were thinking I was talking about them... :sigh:
Not a major gripe, just another minor annoyance. It just struck me as one of the more stupid ones.
-
MS forgot to add ButtonFace, ButtonHighlight & ButtonShadow to the KnownColors enum in .Net They've remembered to add them in for Longhorn though, isn't that handy! :mad:
Can't you get the same effect from SystemColors (Control, ControlLight, ControlDark)?
-
Can't you get the same effect from SystemColors (Control, ControlLight, ControlDark)?
Just about, if you use those colors on the control, e.g. checkbox.BackColor = Control; then that's fine and it even gets output to the html as buttonface :) But, i'm parsing colors from what was originally a delphi dfm file which has colors like clBtnFace. That's fine i've got an enum that maps them to system colors. But if i want to output a color to the html rather than to the server control, then it seems i can't actually get the value 'buttonface' from the system color Control. :( So i ended up getting the individual R, G & B values, formatting them as Hex and outputting the hex value to the html.
-
MS forgot to add ButtonFace, ButtonHighlight & ButtonShadow to the KnownColors enum in .Net They've remembered to add them in for Longhorn though, isn't that handy! :mad:
Correction (EDIT): The system colors to describe elements in the Win32 API are now called COLOR_3DFACE, COLOR_3DLIGHT, COLOR_3DHILIGHT and COLOR_3DSHADOW. (The old BTN... aliases still exist for backward compatiblity.) Unless I'm totally missing the boat, in .NET this are now known as Color.Control, Color.ControlLight, Color.ControlLightLight, Color.ControlDark, Color.ControlDarkDark and Color.ControlText. More: This is actually a little misleading since buttons with themes use gradiants for XP and who knows what for Longhorn. To draw buttons with themes, you can call DrawThemeBackground, with the appropriate parameters. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
-
Correction (EDIT): The system colors to describe elements in the Win32 API are now called COLOR_3DFACE, COLOR_3DLIGHT, COLOR_3DHILIGHT and COLOR_3DSHADOW. (The old BTN... aliases still exist for backward compatiblity.) Unless I'm totally missing the boat, in .NET this are now known as Color.Control, Color.ControlLight, Color.ControlLightLight, Color.ControlDark, Color.ControlDarkDark and Color.ControlText. More: This is actually a little misleading since buttons with themes use gradiants for XP and who knows what for Longhorn. To draw buttons with themes, you can call DrawThemeBackground, with the appropriate parameters. Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke
I'm not statically declaring anything, i'm just mapping from one definition of a system color to another. "COLOR_3DFACE, COLOR_3DHILIGHT and COLOR_3DSHADOW. A fourth is also used called COLOR_3DLIGHT" where are these defined? i don't see these anywhere. Accoring to the longhorn docs, buttonface etc will be included in the system colors.