Possible to tell WB to ignore transparency when dealing with mouse events?
from
WinCustomize Forums
I'm building a WB 4.6 skin where one of the substyles uses dithering in the title bar to achieve a sort of alpha-blending for PC's that don't run XP (like mine
). I manage it by having every other pixel in the title bar bitmap set as magic pink (think of a cross-hatch pattern), and telling WB to tile the image. I don't know how it would look at lower resolutions, but on my CRT at 1920x1440 you have to squint to see the individual pixels, such that it really looks alpha-blended (the titlebar text looks funky, but setting it to outlined text made it a lot more readable). The problem I'm having is that it's hard to grab the window via the title bar, since WB ignores mouse events if you click on a transparent pixel. Might there be a way to tell WB to ignore transparency (i.e., magic pink) when dealing with mouse events? This would be the last piece I need to perfect this.
I noticed that, for the title bar buttons, there's an option to say "add to area" for each button that makes them opaque (which is what I want) and also alleviates any problems when clicking on them. Basically I want to do something similar for the rest of the title bar -- either by artifically adding to its clickable area or by telling WB just to ignore transparency when dealing with mouse events.
). I manage it by having every other pixel in the title bar bitmap set as magic pink (think of a cross-hatch pattern), and telling WB to tile the image. I don't know how it would look at lower resolutions, but on my CRT at 1920x1440 you have to squint to see the individual pixels, such that it really looks alpha-blended (the titlebar text looks funky, but setting it to outlined text made it a lot more readable). The problem I'm having is that it's hard to grab the window via the title bar, since WB ignores mouse events if you click on a transparent pixel. Might there be a way to tell WB to ignore transparency (i.e., magic pink) when dealing with mouse events? This would be the last piece I need to perfect this.I noticed that, for the title bar buttons, there's an option to say "add to area" for each button that makes them opaque (which is what I want) and also alleviates any problems when clicking on them. Basically I want to do something similar for the rest of the title bar -- either by artifically adding to its clickable area or by telling WB just to ignore transparency when dealing with mouse events.