Dynamic tooltips ... possible?

View: New views
3 Messages — Rating Filter:   Alert me  

Dynamic tooltips ... possible?

by Stefan Bellon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'd like to know whether it is possible to create "dynamic tooltips"
with the current version of GtkAda. With "dynamic tooltips" I mean
tooltips that get their content just in the moment before they show,
that is either by some signal that get's emitted
("about_to_show_tooltip" or similar) or by some callback that gets
registered.

Consider the following example: You have a bitmap and want to show the
RGB value of the pixel under the pointer when the mouse stays there for
a certain delay.

I have already looked into the GPS source as GPS does something similar
with showing function declarations together with comments. But to me it
looks like GPS is not using the Gtk tooltips but has implemented its
own ones.

So, is there a solution for the above problem using the Gtk tooltips
that are interfaced in GtkAda or does one have to implement own ones?

Greetings,
Stefan

--
Stefan Bellon
_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada

Re: Dynamic tooltips ... possible?

by Emmanuel Briot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Friday 27 July 2007 22:49:44 Stefan Bellon wrote:
> I have already looked into the GPS source as GPS does something similar
> with showing function declarations together with comments. But to me it
> looks like GPS is not using the Gtk tooltips but has implemented its
> own ones.

Indeed, we have reimplemented our own. Not too difficult to do.

> So, is there a solution for the above problem using the Gtk tooltips
> that are interfaced in GtkAda or does one have to implement own ones?

The newer versions of gtk+ (on the development branches) have a new tooltip
API, I believe. We have no binding for these in GtkAda yet, since these are
not considered as stable gtk+ releases, but you might want to look into this
and perhaps build a small binding on top of it. GtkAda will eventually have
one, but that might not be before several months (time for gtk+ to have a
stable release on all the systems we support, and time to do the binding)

regards
Emmanuel

_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada

Re: Dynamic tooltips ... possible?

by Stefan Bellon :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Emmanuel Briot wrote:

> The newer versions of gtk+ (on the development branches) have a new
> tooltip API, I believe. We have no binding for these in GtkAda yet,
> since these are not considered as stable gtk+ releases, but you
> might want to look into this and perhaps build a small binding on
> top of it. GtkAda will eventually have one, but that might not be
> before several months (time for gtk+ to have a stable release on all
> the systems we support, and time to do the binding)

Thanks for this info. But then we'll wait for the new API to become
stable and available. Thanks a lot for this information!

Greetings,
Stefan

--
Stefan Bellon
_______________________________________________
gtkada mailing list
gtkada@...
http://lists.adacore.com/mailman/listinfo/gtkada
LightInTheBox - Buy quality products at wholesale price