[Gambas-user] how to set transparent background for buttons?

Rob sourceforge-raindog2 at ...94...
Sat Aug 14 01:15:10 CEST 2004


On Friday 13 August 2004 16:42, neil lewis wrote:
> All of this is easy enough, but how can I make the bakcground
> colour for the tool buttons (or any other Gambas widget)
> transparent so that they are not restricted to rectangular
> shapes?

You can't.... Qt has no concept of "transparent" yet as far as I 
know except on the canvas (DrawingArea).  Gambas does have the 
"mask" property, but only on forms, not individual controls.  
You might be able to create a form with just the one control on 
it and a mask of the desired transparency, and then insert that 
form onto another form in code.... no idea what gambas will do 
though, maybe you'd see your desktop background where the 
transparency is supposed to be ;)

I would personally use a DrawingArea control for non-standard 
interfaces like these... it's also the only way (that I know of) 
for gambas to do mouseover highlighting.

Rob





More information about the User mailing list