Giving focus to a JFace ToolTip [message #330560] |
Fri, 01 August 2008 19:14 |
Eclipse User |
|
|
|
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 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03812 seconds