Re: Adding different tooltips to a single widget



Gian Mario Tagliaretti wrote:
2007/4/6, Yann Renard <yann renard mailing-lists tiscali fr>:

I have a problem with tooltips. I have a drawing aread which I use to
draw several things. I would like to provide tooltips on this drawing
area but the tooltip content should vary according to what is drawn
under the cursor and where the cursor is placed. Problem is I have a
single GtkWidget... GtkTipsQuery does not seem to fit my needs either.
What should be used in such context ?

This will be possible in a short time with goocanvas[1], Damon is
implementing the possibility to have tooltips on canvas items, maybe
it can fit your needs, this will require gtk+ 2.12 though.

(goocanvas will shortly freeze the API with a 1.0 stable release.)

[1] http://sourceforge.net/projects/goocanvas

cheers

Dear Gian Mario, thank you for pointing this software to me... It could
be a nice solution to my problem but I'd like to avoid third party
dependancies as much as possible (this is for both code evolution and
ease of compilation under windows). I guess it would not be reasonnable
to add a dependancy for this... moreover, this should be part of GTK in
the sense that tooltips implementation is not complete (I know this is
more a personnal opinion than a true fact ;) and that every
problem/feeling/need depends on the context). I'm not a GTK developper
myself and I don't know how much work it would be to add generalized
tooltips management to drawing area widgets... I already had to code
some workaround in order to have picking working in this drawing area.
In fact, the lack of functionnality better concerns drawing area than
tooltips... and this leaves a place for something like your goocanvas.
But if this is done in goocanvas, why couldn't it be added in GTK ? This
is what makes opensource sooooo powerfull isn't it ?

Best regards,
Yann Renard



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