Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Default focus on combo and scrolling
Default focus on combo and scrolling [message #528810] Wed, 21 April 2010 21:07 Go to next message
Scott Gauss is currently offline Scott GaussFriend
Messages: 2
Registered: April 2010
Junior Member
Hi,

We're using the Forms stuff to implement an editor in a plug-in. We recently updated the version of Eclipse we're using to Galileo, and have found a change in the behavior. It' used to be that when default focus was set on the editor pane, the focus would be set on a BusyIndicator in the FomrHeading. However, setFocus() for BusyIndicator has been overridden in the current code to simply return false.

The first active control on one tab is a combo box. I have users/testers who had gotten used to using the mouse wheel to scroll the form, but now that changes the option selected in the combo box.

Does anyone have any suggestion on how to keep the focus from going to the combo box? I don't want to change the behavior of that combo. Any suggestions on a control that user's won't notice that will take the focus instead?
Re: Default focus on combo and scrolling [message #529883 is a reply to message #528810] Tue, 27 April 2010 14:40 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi,

If the Combo is now the first focusable control then it's correct for it to
receive the initial focus. One possibility you can try if the mouse wheel
functionality is very important is to forceFocus() to the Combo's parent
Composite. If this succeeds then it will appear to the user that focus is
nowhere, which is not ideal, but the mouse wheel should then scroll the
Composite.

It's difficult to suggest another place to put focus initially without
knowing your form's layout. You could probably determine this as well as
anyone else.

Grant


"Scott Gauss" <scott.d.gauss@intel.com> wrote in message
news:hqnpe8$jir$1@build.eclipse.org...
> Hi,
>
> We're using the Forms stuff to implement an editor in a plug-in. We
recently updated the version of Eclipse we're using to Galileo, and have
found a change in the behavior. It' used to be that when default focus was
set on the editor pane, the focus would be set on a BusyIndicator in the
FomrHeading. However, setFocus() for BusyIndicator has been overridden in
the current code to simply return false.
>
> The first active control on one tab is a combo box. I have users/testers
who had gotten used to using the mouse wheel to scroll the form, but now
that changes the option selected in the combo box.
>
> Does anyone have any suggestion on how to keep the focus from going to the
combo box? I don't want to change the behavior of that combo. Any
suggestions on a control that user's won't notice that will take the focus
instead?
Re: Default focus on combo and scrolling [message #530137 is a reply to message #529883] Wed, 28 April 2010 15:43 Go to previous message
Scott Gauss is currently offline Scott GaussFriend
Messages: 2
Registered: April 2010
Junior Member
Thanks for the suggestion. I realize this isn't correct Eclipse behavior, but my users/testers were used to the old behavior where the combo box wasn't selected. Due to that expectation, they would scroll with the mouse wheel automatically, causing the combo box to change value, as well as altering dependent content on the form. The other solution we tried was to select the tab folder. This disabled the scrolling behavior.

Scott
Previous Topic:OLE Automation Excel - SaveAs workbook
Next Topic:Gray ExpandBar on Vista
Goto Forum:
  


Current Time: Fri Mar 29 02:19:25 GMT 2024

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

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

Back to the top