Re: GdkColor
| From: | Alan Knowles | Date: | Tue, 05 Mar 2002 23:54:15 +0000 |
| Subject: | Re: GdkColor | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1452@lists.php.net to get a copy of this message | ||
There are bits and bobs of examples in phpmole - look at the dialogs/generic_config_dialog() - it uses does color setting on the background of drawing areas.
pgtkhtml has a bit of it in look at tests/pgtkhtml/html_textblock.class - method set_gc
I normally use the sytnax
new Gdkcolor('#FF00CC') - it can accept good ole web hexcodes :)
regards
alan
Markus Fischer wrote:
There used to be an article at develop.gnome.org around but I forgot the link .... On Wed, Mar 06, 2002 at 12:20:50AM +0100, Adrian Immler wrote :somehow the colors are applied to all widgets. i use this: $button ->style->bg[GTK_STATE_ACTIVE] = $color1; if $color1 represents some kind of blue all <"inputs"> are blued ... why !? someone knows how the GdkColor works in C/C++ ? i didn't understand the syntax of it ... -- PHP-GTK General Mailing List (http://gtk.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php