![]() |
|
Another way to use Hardware Images and Transparency (alpha channel) for a PopUp Menu - Printable Version +- QB64 Phoenix Edition (https://qb64phoenix.com/forum) +-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10) +---- Thread: Another way to use Hardware Images and Transparency (alpha channel) for a PopUp Menu (/showthread.php?tid=3569) |
Another way to use Hardware Images and Transparency (alpha channel) for a PopUp Menu - TempodiBasic - 03-30-2025 Hi @Pete I have tried this way to accomplish the goal to have a PopUp menu and to use Hardware acceleration images for this and/or buttons. here screenshots: at start, button is hardware image, window is software image ![]() showing popup menu: popup is software image, hover selection of mouse pointer is hardware image ![]() overlapping popup and button: button appears as a shadow color in popup, just like if popup menu has a low grade of transparency (alpha channell about 30%) ![]() here the code: Code: (Select All)
One tip: you must select the right combination of color to get a good visual effect. RE: Another way to use Hardware Images and Transparency (alpha channel) for a PopUp Menu - Pete - 03-30-2025 Hi my friend from Italia, Smart! You figured out a way to mess with the hardware button transparency to give the optical illusion the software menu is floating over it, instead of under it, as would happen with no opacity! Yes, I also used a hardware shadow effect to make my popup look 3-D., just like you used one to highlight menu choices. Well this would only work in my application if I wasn't also using .png images. Well, maybe another set could be saved with opacity, I'm not sure. As far as my graphics buttons go, yes, they could be switched out to opaque ones when the popup comes up on the screen. It's not a bad effect, as it draws attention away from the main screen when the popup is open. Amazing Steve didn't think of this. ![]() +2 for thinking under the box! Pete
|