[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Color in GtkLabel ?




But How do I create that GC color to get a coloured label at all?
You can't like the GtkText use a GdkColor... ?

  Gert


On Wed, 11 Nov 1998, Eric Harlow wrote:

:I'd say you'd have to create two different widgets each with their own
:color and put them in an hbox.  You can try that - although there may
:be a problem since the labels don't have an associated xwindow with
:them and use their parent's xwindow.  Experiment.
:
: -ERic
:
:
:
:---Gert Scholten <gs2@dds.nl> wrote:
:>
:> 
:> 
:> On Wed, 11 Nov 1998, Eric Harlow wrote:
:> 
:> :
:> :Define "partially" colored?  Like the top half of the letters are
:blue
:> :and the bottom half yellow?
:> 
:> like: "\e[31mHello \e[0mthere"
:> Different letter with different colors. All letters same color will
:do to, so
:> those styles may be usefull. Just one thing, how do I alther them.
:> 
:> If I do
:> 
:> GtkStyle *style;
:> style = gtk_widget_get_style();
:> style->fg_gc[GTK_STATE_NORMAL] = ????
:> 
:> How do I put an RGB value in a GdkGC (whatever that is)...
:> Looking at gdk.h didn't help me :(
:> 
:> Any suggestions?
:> 
:> Gert
:> 
:> 
:> -- 
:>          To unsubscribe: mail gtk-app-devel-list-request@redhat.com
:with 
:>                        "unsubscribe" as the Subject.
:> 
:> 	Mailing list concerns should be mailed to <listmaster@redhat.com>
:> 
:> 
:
:_________________________________________________________
:DO YOU YAHOO!?
:Get your free @yahoo.com address at http://mail.yahoo.com
:
:
:-- 
:         To unsubscribe: mail gtk-app-devel-list-request@redhat.com with 
:                       "unsubscribe" as the Subject.
:
:	Mailing list concerns should be mailed to <listmaster@redhat.com>
:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]