Re: GdkColor
| From: | Steph | Date: | Wed, 06 Mar 2002 00:20:20 +0000 |
| Subject: | Re: GdkColor | ||
| References: | 1 2 3 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1453@lists.php.net to get a copy of this message | ||
I just got around to looking at the source code.
Where default properties are set, you're changing the application's default style by doing
the original stuff.
Wonder if it helps to use $stylenew = $style->copy();
?
- will investigate, be back in about a month ;)
----- Original Message -----
From: "Alan Knowles" <alan@akbkhome.com>
To: <php-gtk-general@lists.php.net>
Sent: Tuesday, March 05, 2002 11:54 PM
Subject: Re: [PHP-GTK] GdkColor
> 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
> >>
> >
>
>
>
>
> --
> PHP-GTK General Mailing List (http://gtk.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>