Wierd
-
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
-
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
What happens if you use printscreen?
-
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
I think W2k has some new (and documented) alpha channel transparency features. The menus may be using this.
-
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
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
-
I think W2k has some new (and documented) alpha channel transparency features. The menus may be using this.
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
-
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
"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
-
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
Perhaps the shadow is drawn in hardware, similar to the cursor
-
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
Isn't menu shadows standard in w2k?:confused: Even notepad has got them (I think). ---[ d e v i x ]---