Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » Fake Focus?
Fake Focus? [message #139258] Tue, 24 July 2007 16:29 Go to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
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 16:57 Go to previous message
Philippe Ombredanne is currently offline Philippe OmbredanneFriend
Messages: 386
Registered: July 2009
Senior Member
"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 16:57 Go to previous message
Philippe Ombredanne is currently offline Philippe OmbredanneFriend
Messages: 386
Registered: July 2009
Senior Member
"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: Fri Dec 19 16:30:59 GMT 2014

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

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