[Gambas-user] Button Transparency

Rolf-Werner Eilert rwe-sse at osnanet.de
Fri Oct 30 08:42:12 CET 2020


Am 29.10.20 um 18:15 schrieb KKing:
> hButton.Background = Color.Transparent
> Works great on a debian 10 KDE unit out of box.
> But on debian 9 LXDE (fairly plain) unit the button is black not 
> transparent.
> I've installed "compton" on a Debian 9 LXDE unit and now have a "Window 
> Effects" menu item with a plethora of options of which I have no idea 
> what they all mean. But know it can do stuff as funky command in 
> terminal of
> compton --opacity-rule 45:'class_g *= "X-terminal-emulator"'
> makes all the other windows faint, until the command is terminated.
> Anyone know what setting(s) I need to look at to make the button 
> transparent in LXDE?
> K.
> 
> 
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
> 

Have you tried ToolButton? It has a Picture area plus Text, and it 
defaults to transparent, i. e. when you add a picture with transparent 
parts you can still see what's behind. And it is a button after all...

I just tried it, and it worked flawlessly.

Regards
Rolf



More information about the User mailing list