Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Giving focus to a JFace ToolTip
Giving focus to a JFace ToolTip [message #330560] Fri, 01 August 2008 19:14 Go to next message
Eclipse UserFriend
Originally posted by: higginmi.xxxx.xxx

Hi,

I asked this in a slightly different way over a week ago and received no
response. Maybe it was the subject line. So, I'll try again.

I have extended the JFace ToolTip class. I have it working very nicely
visually. I have it associated with a HyperLink and on activation of the
link I open my tool tip. In such a case, I need the ToolTip to either
grab focus or be given focus programmatically when it opens. This is so
that screen readers like JAWS cannot read it. I have been unable to give
it focus from the keyboard or via the JAWS hot keys which means JAWS
does not read it. I can give it focus using the mouse but that's a bit
difficult for those that require a screen reader.

Thanks,
Mike Higginbotham
Re: Giving focus to a JFace ToolTip [message #330564 is a reply to message #330560] Fri, 01 August 2008 22:23 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Mike Higginbotham wrote:
> Hi,
>
> I asked this in a slightly different way over a week ago and received no
> response. Maybe it was the subject line. So, I'll try again.
>
> I have extended the JFace ToolTip class. I have it working very nicely
> visually. I have it associated with a HyperLink and on activation of the
> link I open my tool tip. In such a case, I need the ToolTip to either
> grab focus or be given focus programmatically when it opens. This is so
> that screen readers like JAWS cannot read it. I have been unable to give
> it focus from the keyboard or via the JAWS hot keys which means JAWS
> does not read it. I can give it focus using the mouse but that's a bit
> difficult for those that require a screen reader.

Instead of using ToolTip, maybe you should try using PopupDialog. If you
pass the right style bits it can look and act similar to a tooltip, but
I think it can have focus.
Here are the constructor args that I use in a subclass of PopupDialog
that is invoked from a hyperlink and it behaves exactly as I'd expect:

super(parentShell,
SWT.RESIZE | SWT.ON_TOP | SWT.NO_TRIM,
true, false, false, false,
null, null);

Hope this helps,
Eric
Previous Topic:Jface Tableviewer
Next Topic:Workspace save participation
Goto Forum:
  


Current Time: Thu Dec 26 14:09:46 GMT 2024

Powered by FUDForum. Page generated in 0.03347 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top