How to get default window background colour?
Posted: Tue Dec 27, 2011 3:02 pm
Hi,
I like to use runtime-generated buttons by using ImageGadgets. Sadly, I do not manage to use transparency on the ImageGadgets. Now, I like to fill the background at least with the current window background colour.
But GetWindowColor() does not return any value (-1) if I do not set it previously.
I found some GTK hints about getting the colour, but PB does not know the needed API functions.
(http://developer.gnome.org/gtk/2.24/Gtk ... e-property)
How to retrieve this colour?
Kukulkan
I like to use runtime-generated buttons by using ImageGadgets. Sadly, I do not manage to use transparency on the ImageGadgets. Now, I like to fill the background at least with the current window background colour.
But GetWindowColor() does not return any value (-1) if I do not set it previously.

I found some GTK hints about getting the colour, but PB does not know the needed API functions.

How to retrieve this colour?
Kukulkan