[gtkada] Tags and Text Colours?
Preben Randhol
randhol at pvv.org
Thu Jun 5 09:52:36 CEST 2003
"chris.danx" <chris.danx at ntlworld.com> wrote on 05/06/2003 (09:38) :
> Hi,
>
> How do you work with tags? I know gtkada has no binding to create_tag
> because of multiple args, however all the examples on how to work with
> this use this function. What I don't understand is how when the tag
> is applied it actually does anything. The following code is a
> partially converted version of the example given at
>
> http://inti.sourceforge.net/tutorial/libinti/textwidget.html
>
> I also can't find a method/subroutine matching gtk_widget_modify_text
> in Gtk. How do you change the colour of the text? All code is given
> at the bottom but this is the relevant section...
I'm not hundred percent sure we are talking about the same thing, but I
added a binding so that GtkAda also can use markups. So creating a blue
and green label, I would only do this:
Set_Markup
(Label, "<span foreground=""blue"" size=""large"">Blue</span>" &
"<span foreground=""green"" size=""large"">Green</span>");
However I seem to have forgotten to send it to the GtkAda people so I'll
do that ASAP.
--
Preben Randhol -------------- http://www.pvv.org/~randhol/Ada95 --
«For me, Ada95 puts back the joy in programming.»
More information about the gtkada
mailing list