Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Would you Adam & Eve it?

Would you Adam & Eve it?

Scheduled Pinned Locked Moved The Lounge
csharpquestion
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    netclectic
    wrote on last edited by
    #1

    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:

    D G J 3 Replies Last reply
    0
    • N netclectic

      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:

      D Offline
      D Offline
      Daniel Turini
      wrote on last edited by
      #2

      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:

      N 1 Reply Last reply
      0
      • D Daniel Turini

        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:

        N Offline
        N Offline
        netclectic
        wrote on last edited by
        #3

        Not a major gripe, just another minor annoyance. It just struck me as one of the more stupid ones.

        1 Reply Last reply
        0
        • N netclectic

          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:

          G Offline
          G Offline
          Glenn Dawson
          wrote on last edited by
          #4

          Can't you get the same effect from SystemColors (Control, ControlLight, ControlDark)?

          N 1 Reply Last reply
          0
          • G Glenn Dawson

            Can't you get the same effect from SystemColors (Control, ControlLight, ControlDark)?

            N Offline
            N Offline
            netclectic
            wrote on last edited by
            #5

            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.

            1 Reply Last reply
            0
            • N netclectic

              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:

              J Offline
              J Offline
              Joe Woodbury
              wrote on last edited by
              #6

              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

              N 1 Reply Last reply
              0
              • J Joe Woodbury

                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

                N Offline
                N Offline
                netclectic
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups