Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » SWT Client: Checkbox no longer has focus indication
SWT Client: Checkbox no longer has focus indication [message #1697462] Thu, 04 June 2015 07:00 Go to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
In the past, checkboxes used to have a dashed line around them to indicate they had the focus. I can't exactly tell when this changed but we are currently running an SWT client using Scout Luna SR2 and our checkboxes no longer indicate when they have the focus. This makes keyboard based navigation (using tab) very difficult, as it is impossible to tell which field has the focus when the focus is on a checkbox.

Can anyone else reproduce this issue?
Re: SWT Client: Checkbox no longer has focus indication [message #1697853 is a reply to message #1697462] Tue, 09 June 2015 06:01 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I just tested with Mars RC2 and I could reproduce what you are describing:
index.php/fa/22117/0/<br />

I can tab and focus a checkbox. By pressing "Space", I can check and uncheck the checkbox but there is no visual indication that the focus is on the checkbox.

.
Re: SWT Client: Checkbox no longer has focus indication [message #1697993 is a reply to message #1697853] Wed, 10 June 2015 08:01 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I have checked with an older version of Scout (3.10).
If I remember it correctly this version corresponds to Luna M5.

Precisely the application I have tested uses this Scout-SWT jar:
org.eclipse.scout.rt.ui.swt_3.10.1.20140521-1127.jar

But I also have the Luna SR2 SWT jars:
org.eclipse.swt.win32.win32.x86_3.103.2.v20150203-1351.jar
org.eclipse.swt_3.103.2.v20150203-1313.jar

The result is the same. No focus indication.

index.php/fa/22123/0/

Using Google, I found Bug 141026. It seems to me that this has nothing to do with Scout but with SWT and Windows in general.

Can you find a version where the desired behavior works as expected?
Re: SWT Client: Checkbox no longer has focus indication [message #1698006 is a reply to message #1697993] Wed, 10 June 2015 10:12 Go to previous messageGo to next message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
Hi Jérémie

Thanks for reproducing the bug. I haven't got a running application that shows the visual indicator, but I am pretty sure that with Scout Kepler this used to work.

Also thanks for searching for the bug you quoted, however, I am not sure that it's the same issue:
The person reporting the bug states:
Quote:
With an SWT checkbox [...] the focus rectangle is only drawn around the text of the checkbox button, if the text is set.


And then provides two images:
Platform rendering (windows native): https://bugs.eclipse.org/bugs/attachment.cgi?id=40936
Eclipse Checkbox: https://bugs.eclipse.org/bugs/attachment.cgi?id=40938

So it seems that his complaint is that with an empty text, SWT renders the focus indicator around the "empty text" instead of around the checkbox. He doesn't provide a screenshot, but as I understood him, the focus box is correctly shown using SWT when a text is set on the checkbox.

However, in our case, the focus indicator is *never* drawn for checkboxes.
Re: SWT Client: Checkbox no longer has focus indication [message #1698047 is a reply to message #1698006] Wed, 10 June 2015 15:34 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Kepler... This is an old version... And you are right:

index.php/fa/22131/0/

Tested with an Kepler SR1 version.
* SWT: 3.102.1.v20130827-2021
* Scout-Swt: 3.9.1.20130827-1017

I am not sure where the problem is...
  • Attachment: kepler.png
    (Size: 16.82KB, Downloaded 718 times)
Re: SWT Client: Checkbox no longer has focus indication [message #1698086 is a reply to message #1698047] Thu, 11 June 2015 06:15 Go to previous message
Urs Beeli is currently offline Urs BeeliFriend
Messages: 573
Registered: October 2012
Location: Bern, Switzerland
Senior Member
Thanks for verifying. I've opened a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=469899
Previous Topic:Scout about window - version for extensions?
Next Topic:MessageBox being displayed twice
Goto Forum:
  


Current Time: Thu Apr 25 19:32:38 GMT 2024

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

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

Back to the top