Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Fake Focus?
Fake Focus? [message #139258] Tue, 24 July 2007 12:29 Go to next message
Eclipse UserFriend
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?

-stefan
Re: Fake Focus? [message #140411 is a reply to message #139258] Thu, 13 September 2007 12:57 Go to previous message
Eclipse UserFriend
"SKuhn" <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
Re: Fake Focus? [message #616533 is a reply to message #139258] Thu, 13 September 2007 12:57 Go to previous message
Eclipse UserFriend
"SKuhn" <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
Previous Topic:about override files
Next Topic:A previous error prevented bean from being created
Goto Forum:
  


Current Time: Sat Jul 19 13:53:50 EDT 2025

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

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

Back to the top