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. Wierd

Wierd

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studiobeta-testingjson
8 Posts 6 Posters 1 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
    NormDroid
    wrote on last edited by
    #1

    Probably not the place to post this, but anyway - alls quite here :) I'm trying to develop a wrapper class emulating the Menus found in Visual Studio 7.0(beta). I'm using the good old Zoomin tool to see how the 'shadow' effects are created. Zoomin does NOT show the shadow effects when the menu is drawn (I'm using the refresh setting BTW). So it seems to me the shadowing is triggered/activated further down than the GDI32. Anybody any ideas on this one.:confused: BTW: The shadow is only found on Win2000, could be some undocumented API setting. Norm

    D S C S M 5 Replies Last reply
    0
    • N NormDroid

      Probably not the place to post this, but anyway - alls quite here :) I'm trying to develop a wrapper class emulating the Menus found in Visual Studio 7.0(beta). I'm using the good old Zoomin tool to see how the 'shadow' effects are created. Zoomin does NOT show the shadow effects when the menu is drawn (I'm using the refresh setting BTW). So it seems to me the shadowing is triggered/activated further down than the GDI32. Anybody any ideas on this one.:confused: BTW: The shadow is only found on Win2000, could be some undocumented API setting. Norm

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

      What happens if you use printscreen?

      1 Reply Last reply
      0
      • N NormDroid

        Probably not the place to post this, but anyway - alls quite here :) I'm trying to develop a wrapper class emulating the Menus found in Visual Studio 7.0(beta). I'm using the good old Zoomin tool to see how the 'shadow' effects are created. Zoomin does NOT show the shadow effects when the menu is drawn (I'm using the refresh setting BTW). So it seems to me the shadowing is triggered/activated further down than the GDI32. Anybody any ideas on this one.:confused: BTW: The shadow is only found on Win2000, could be some undocumented API setting. Norm

        S Offline
        S Offline
        Sir Gras of Berger
        wrote on last edited by
        #3

        I think W2k has some new (and documented) alpha channel transparency features. The menus may be using this.

        N 1 Reply Last reply
        0
        • N NormDroid

          Probably not the place to post this, but anyway - alls quite here :) I'm trying to develop a wrapper class emulating the Menus found in Visual Studio 7.0(beta). I'm using the good old Zoomin tool to see how the 'shadow' effects are created. Zoomin does NOT show the shadow effects when the menu is drawn (I'm using the refresh setting BTW). So it seems to me the shadowing is triggered/activated further down than the GDI32. Anybody any ideas on this one.:confused: BTW: The shadow is only found on Win2000, could be some undocumented API setting. Norm

          C Offline
          C Offline
          Chris Maunder
          wrote on last edited by
          #4

          The shadow appears after the menu has drawn (as far as I can tell). It looks like an alpha-blended gradient brush is used, though the very top right and bottom left edges may take some tweaking. Personally I'd be drawing the shadow after the menu window comes up, but before the menu items are drawn. Maybe this is what's actually happening but my brain is out of sync with my eyes... cheers, Chris Maunder

          N 1 Reply Last reply
          0
          • S Sir Gras of Berger

            I think W2k has some new (and documented) alpha channel transparency features. The menus may be using this.

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

            Don I thought the policy on undocumented features in the Win32 OS was all API calls were to be made public? I'm trying to spot other places where is feature manifests itself, so far the Cursor, and the VS 7.0 menus seem to be the only areas. Has anyone else found other areas? Norm

            1 Reply Last reply
            0
            • C Chris Maunder

              The shadow appears after the menu has drawn (as far as I can tell). It looks like an alpha-blended gradient brush is used, though the very top right and bottom left edges may take some tweaking. Personally I'd be drawing the shadow after the menu window comes up, but before the menu items are drawn. Maybe this is what's actually happening but my brain is out of sync with my eyes... cheers, Chris Maunder

              N Offline
              N Offline
              NormDroid
              wrote on last edited by
              #6

              "alpha-blended gradient brush" Chris you just might have something to go on there. I was thinking about some kinda SetROP2 masking. This is bugging me and I wont rest 'till I find out, well after christmas at least :D Try starting Zoomin, you'll see what I mean about the shadowing (or not as the case may be). Norm

              1 Reply Last reply
              0
              • N NormDroid

                Probably not the place to post this, but anyway - alls quite here :) I'm trying to develop a wrapper class emulating the Menus found in Visual Studio 7.0(beta). I'm using the good old Zoomin tool to see how the 'shadow' effects are created. Zoomin does NOT show the shadow effects when the menu is drawn (I'm using the refresh setting BTW). So it seems to me the shadowing is triggered/activated further down than the GDI32. Anybody any ideas on this one.:confused: BTW: The shadow is only found on Win2000, could be some undocumented API setting. Norm

                S Offline
                S Offline
                Simon Capewell
                wrote on last edited by
                #7

                Perhaps the shadow is drawn in hardware, similar to the cursor

                1 Reply Last reply
                0
                • N NormDroid

                  Probably not the place to post this, but anyway - alls quite here :) I'm trying to develop a wrapper class emulating the Menus found in Visual Studio 7.0(beta). I'm using the good old Zoomin tool to see how the 'shadow' effects are created. Zoomin does NOT show the shadow effects when the menu is drawn (I'm using the refresh setting BTW). So it seems to me the shadowing is triggered/activated further down than the GDI32. Anybody any ideas on this one.:confused: BTW: The shadow is only found on Win2000, could be some undocumented API setting. Norm

                  M Offline
                  M Offline
                  Marc Richarme
                  wrote on last edited by
                  #8

                  Isn't menu shadows standard in w2k?:confused: Even notepad has got them (I think). ---[ d e v i x ]---

                  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