Re: Programmatically popup a tooltip
- From: "A. Pagaltzis" <pagaltzis gmx de>
- To: Gtk-Perl-List <gtk-perl-list gnome org>
- Subject: Re: Programmatically popup a tooltip
- Date: Fri, 13 May 2005 18:04:06 +0200
* ofey aikon <ofey aikon gmail com> [2005-05-13 17:40]:
Is there a way to programmatically popup a tooltip using
Gtk2::Tooltip ? I tried the force_window() api but that doesn't
seem to be meant for this purpose.
: <http://developer.gnome.org/doc/API/2.4/gtk/GtkTooltips.html>
: gtk_tooltips_force_window ()
: Ensures that the window used for displaying the given tooltips is created.
: Applications should never have to call this function, since GTK+ takes care of this.
If you are wondering what I am upto, I want to move my mouse
over a Gtk2::Image and based on the co-ordinates, I want to
popup a tooltip and display different text.
The only straightforward solution seems to be to put the
Gtk2::Image in a Gtk2::Fixed container and then position
Gtk2::EventBox objects on top of the image at the desired
coordinates â you can then associate an individual tooltip with
each eventbox. This doesnât seem very satisfactory, but despite a
good amount of searching I canât see how widgets and tooltips
interface with each other, so there seems not to be any easier
approach.
Regards,
--
#Aristotle
*AUTOLOAD=*_=sub{s/(.*)::(.*)/print$2,(",$\/"," ")[defined wantarray]/e;$1};
&Just->another->Perl->hacker;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]