The following bytes were arranged on 7 Mar 2013 by Steve Fryatt :

> I see there's actually some tooltip code buried in the local history GUI for
> the RISC OS front-end (turn them on via the option in Interface).  Can a
> front-end find out from the core that the pointer is hovering over a link,
> form submission button or similar?

No need to, I think - just hijack the existing content message which
causes the contents of the status bar to be changed.  If it doesn't
change again within one second, show the tooltip at the pointer.

That should be reasonably foolproof.  I suppose this might not be quite
appropriate for things like the "Warning: button could not be activated"
message, but any niggles like that would be extremely minor.

Another potential flaw might be its interaction with the existing glitch
where the status bar continues showing the content text if the pointer
moves out of the window without passing over an 'unlabelled' area (e.g.
the title text of an image partly off the bottom of the view).  Probably
best to forcibly hide the tooltip if the pointer leaves the work area,
not least in case the entire page is a link of some kind and the user's
trying to read it without the tooltip getting in the way!

-- 
  __<^>__   === RISC OS is a work of art.  Some people adore it,  ===
 / _   _ \  === others can't see the point of it, and it's really ===
( ( |_| ) ) === expensive.                                        ===
 \_>   <_/  ======================= Martin Bazley ===================

Reply via email to