Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsFake Focus?
https://www.eclipse.org/forums/index.php/mv/msg/42825/139258/#msg_139258
is it possible to fake mouse-cursor focus on an SWT-control, e.g. a Button?
My problem is I've implemented a screen scraper similar to the one from
Visual Editor and I got the same 'problem' as they have:
Buttons created on an invisible shell don't have focus and look grey.
It's not possible to set the cursor there and back because windows fades
the button in, which means I would have to wait a certain time on the
real button --> hide the cursor from the user for ~1sec (too much).
Any ideas?
-stefan]]>Stefan Kuhn2007-07-24T16:29:28-00:00Re: Fake Focus?
https://www.eclipse.org/forums/index.php/mv/msg/42825/616533/#msg_616533
kuhn@oio.de> wrote in message
news:f859dd$bqo$1@build.eclipse.org...
> hi all,
>
> is it possible to fake mouse-cursor focus on an SWT-control, e.g. a
Button?
>
> My problem is I've implemented a screen scraper similar to the one from
> Visual Editor and I got the same 'problem' as they have:
> Buttons created on an invisible shell don't have focus and look grey.
> It's not possible to set the cursor there and back because windows fades
> the button in, which means I would have to wait a certain time on the
> real button --> hide the cursor from the user for ~1sec (too much).
>
> Any ideas?
You shoudl ask that question on SWT groups
This is a tough one.
Afaik the asnwer is no, but there may be ways around it.
BTW, is your project open source?
It sounds cool.
--
Cheers, Philippe
philippe ombredanne | nexB
1 650 799 0949 | pombredanne at nexb.com http://www.nexb.com http://EasyEclipse.org]]>Philippe Ombredanne2007-09-13T16:57:39-00:00Re: Fake Focus?
https://www.eclipse.org/forums/index.php/mv/msg/42825/140411/#msg_140411
kuhn@oio.de> wrote in message
news:f859dd$bqo$1@build.eclipse.org...
> hi all,
>
> is it possible to fake mouse-cursor focus on an SWT-control, e.g. a
Button?
>
> My problem is I've implemented a screen scraper similar to the one from
> Visual Editor and I got the same 'problem' as they have:
> Buttons created on an invisible shell don't have focus and look grey.
> It's not possible to set the cursor there and back because windows fades
> the button in, which means I would have to wait a certain time on the
> real button --> hide the cursor from the user for ~1sec (too much).
>
> Any ideas?
You shoudl ask that question on SWT groups
This is a tough one.
Afaik the asnwer is no, but there may be ways around it.
BTW, is your project open source?
It sounds cool.
--
Cheers, Philippe
philippe ombredanne | nexB
1 650 799 0949 | pombredanne at nexb.com http://www.nexb.com http://EasyEclipse.org]]>Philippe Ombredanne2007-09-13T16:57:39-00:00