Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » List selection gone when focus is lost
List selection gone when focus is lost [message #437058] Fri, 28 May 2004 05:42 Go to next message
Eclipse UserFriend
Hi!

I've got a simple List widget in my UI. When the list loses the focus the
selection in the list is lost (it's not visible anymore anyway). Is it
supposed to be this way? Is there a setting to control this behaviour?
When I've made a selection inside the List I always want the selection to
be visible, no matter where the focus has gone to!

I think I've noticed the same behaviour in the Table widget.

Thanks in advance for any helpful insights...
Re: List selection gone when focus is lost [message #437067 is a reply to message #437058] Fri, 28 May 2004 08:56 Go to previous messageGo to next message
Eclipse UserFriend
Mattias,

Assuming you're running on linux-gtk, there is a theme that does this. I
used to see this on a previous linux install and it drove me crazy. The
selection would even disappear when right-clicking on a tree item in the
package explorer, because focus was given to the context menu.

The only other possibility is you're seeing a Table with the
SWT.HIDE_SELECTION style. I don't think there are any of these in eclipse
though.

Grant

"Mattias" <mattias.soderin@compiere.se> wrote in message
news:c971ih$b5i$1@eclipse.org...
> Hi!
>
> I've got a simple List widget in my UI. When the list loses the focus the
> selection in the list is lost (it's not visible anymore anyway). Is it
> supposed to be this way? Is there a setting to control this behaviour?
> When I've made a selection inside the List I always want the selection to
> be visible, no matter where the focus has gone to!
>
> I think I've noticed the same behaviour in the Table widget.
>
> Thanks in advance for any helpful insights...
>
Re: List selection gone when focus is lost [message #437071 is a reply to message #437067] Fri, 28 May 2004 09:13 Go to previous messageGo to next message
Eclipse UserFriend
Yeah, I'm running linux GTK. I should have mentioned it in my message. So
it's the GTK's fault then? Nothing to be done?

Thanks for the input!

- Mattias

> Mattias,

> Assuming you're running on linux-gtk, there is a theme that does this. I
> used to see this on a previous linux install and it drove me crazy. The
> selection would even disappear when right-clicking on a tree item in the
> package explorer, because focus was given to the context menu.

> The only other possibility is you're seeing a Table with the
> SWT.HIDE_SELECTION style. I don't think there are any of these in eclipse
> though.

> Grant

> "Mattias" <mattias.soderin@compiere.se> wrote in message
> news:c971ih$b5i$1@eclipse.org...
> > Hi!
> >
> > I've got a simple List widget in my UI. When the list loses the focus the
> > selection in the list is lost (it's not visible anymore anyway). Is it
> > supposed to be this way? Is there a setting to control this behaviour?
> > When I've made a selection inside the List I always want the selection to
> > be visible, no matter where the focus has gone to!
> >
> > I think I've noticed the same behaviour in the Table widget.
> >
> > Thanks in advance for any helpful insights...
> >
Re: List selection gone when focus is lost [message #437091 is a reply to message #437071] Fri, 28 May 2004 11:14 Go to previous messageGo to next message
Eclipse UserFriend
You should see the same behaviour in gtk-demo. This may be settable
somewhere, but I couldn't find it when I looked previously.

Grant

"Mattias" <mattias.soderin@compiere.se> wrote in message
news:c97dt9$t1v$1@eclipse.org...
> Yeah, I'm running linux GTK. I should have mentioned it in my message. So
> it's the GTK's fault then? Nothing to be done?
>
> Thanks for the input!
>
> - Mattias
>
> > Mattias,
>
> > Assuming you're running on linux-gtk, there is a theme that does this.
I
> > used to see this on a previous linux install and it drove me crazy. The
> > selection would even disappear when right-clicking on a tree item in the
> > package explorer, because focus was given to the context menu.
>
> > The only other possibility is you're seeing a Table with the
> > SWT.HIDE_SELECTION style. I don't think there are any of these in
eclipse
> > though.
>
> > Grant
>
> > "Mattias" <mattias.soderin@compiere.se> wrote in message
> > news:c971ih$b5i$1@eclipse.org...
> > > Hi!
> > >
> > > I've got a simple List widget in my UI. When the list loses the focus
the
> > > selection in the list is lost (it's not visible anymore anyway). Is it
> > > supposed to be this way? Is there a setting to control this behaviour?
> > > When I've made a selection inside the List I always want the selection
to
> > > be visible, no matter where the focus has gone to!
> > >
> > > I think I've noticed the same behaviour in the Table widget.
> > >
> > > Thanks in advance for any helpful insights...
> > >
>
>
Re: List selection gone when focus is lost [message #437102 is a reply to message #437071] Fri, 28 May 2004 15:18 Go to previous messageGo to next message
Eclipse UserFriend
Mattias wrote:
> Yeah, I'm running linux GTK. I should have mentioned it in my message. So
> it's the GTK's fault then? Nothing to be done?

Which theme are you using?

You should determine which theme it is and file a usability bug
against them, and change your theme!

-Billy

>>Assuming you're running on linux-gtk, there is a theme that does this. I
>>used to see this on a previous linux install and it drove me crazy. The
>>selection would even disappear when right-clicking on a tree item in the
>>package explorer, because focus was given to the context menu.
>
>
>>The only other possibility is you're seeing a Table with the
>>SWT.HIDE_SELECTION style. I don't think there are any of these in eclipse
>>though.
>
>>Grant
>
>>"Mattias" <mattias.soderin@compiere.se> wrote in message
>>news:c971ih$b5i$1@eclipse.org...
>>
>>>Hi!
>>>
>>>I've got a simple List widget in my UI. When the list loses the focus the
>>>selection in the list is lost (it's not visible anymore anyway). Is it
>>>supposed to be this way? Is there a setting to control this behaviour?
>>>When I've made a selection inside the List I always want the selection to
>>>be visible, no matter where the focus has gone to!
>>>
>>>I think I've noticed the same behaviour in the Table widget.
>>>
>>>Thanks in advance for any helpful insights...
>>>
Re: List selection gone when focus is lost [message #437166 is a reply to message #437058] Sun, 30 May 2004 04:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swt.cloudnine.net.nz

On Fri, 28 May 2004 09:42:41 +0000, Mattias wrote:

> Hi!
>
> I've got a simple List widget in my UI. When the list loses the focus the
> selection in the list is lost (it's not visible anymore anyway). Is it
> supposed to be this way? Is there a setting to control this behaviour?
> When I've made a selection inside the List I always want the selection to
> be visible, no matter where the focus has gone to!
>
> I think I've noticed the same behaviour in the Table widget.
>
> Thanks in advance for any helpful insights...

Hi,

have you found the solution to this yet?
I'm getting it as well, on many different themes (havn't tried another
linux box yet). Wondering if you've found any further information.

Regards,
Neil Clayton
Re: List selection gone when focus is lost [message #437167 is a reply to message #437166] Sun, 30 May 2004 08:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: swt.cloudnine.net.nz

On Sun, 30 May 2004 09:38:56 +0100, Neil Clayton wrote:

> On Fri, 28 May 2004 09:42:41 +0000, Mattias wrote:
>
>> Hi!
>>
>> I've got a simple List widget in my UI. When the list loses the focus the
>> selection in the list is lost (it's not visible anymore anyway). Is it
>> supposed to be this way? Is there a setting to control this behaviour?
>> When I've made a selection inside the List I always want the selection to
>> be visible, no matter where the focus has gone to!
>>
>> I think I've noticed the same behaviour in the Table widget.
>>
>> Thanks in advance for any helpful insights...
>
> Hi,
>
> have you found the solution to this yet?
> I'm getting it as well, on many different themes (havn't tried another
> linux box yet). Wondering if you've found any further information.
>
> Regards,
> Neil Clayton

I've now found that it's probably KDE. GTK is fine under Sawfish and
GNOME. I tracked it down the the configuration file written by KDE, when
you choose to make GTK's colours the same as KDEs. If you turn this off
(that particular config file is then cleared out) - the problem goes away.

The config file will be mentioned in the env var GTK2_RC_FILES. So, look
under there if you want to find out where it is. Mine was at
/home/neil/.kde/share/config/gtkrc

Hope this is of help to others.

Neil
Re: List selection gone when focus is lost [message #437203 is a reply to message #437102] Tue, 01 June 2004 02:27 Go to previous messageGo to next message
Eclipse UserFriend
I'm using KDE!

- Mattias

Billy Biggs wrote:

> Mattias wrote:
> > Yeah, I'm running linux GTK. I should have mentioned it in my message. So
> > it's the GTK's fault then? Nothing to be done?

> Which theme are you using?

> You should determine which theme it is and file a usability bug
> against them, and change your theme!

> -Billy

> >>Assuming you're running on linux-gtk, there is a theme that does this. I
> >>used to see this on a previous linux install and it drove me crazy. The
> >>selection would even disappear when right-clicking on a tree item in the
> >>package explorer, because focus was given to the context menu.
> >
> >
> >>The only other possibility is you're seeing a Table with the
> >>SWT.HIDE_SELECTION style. I don't think there are any of these in eclipse
> >>though.
> >
> >>Grant
> >
> >>"Mattias" <mattias.soderin@compiere.se> wrote in message
> >>news:c971ih$b5i$1@eclipse.org...
> >>
> >>>Hi!
> >>>
> >>>I've got a simple List widget in my UI. When the list loses the focus the
> >>>selection in the list is lost (it's not visible anymore anyway). Is it
> >>>supposed to be this way? Is there a setting to control this behaviour?
> >>>When I've made a selection inside the List I always want the selection to
> >>>be visible, no matter where the focus has gone to!
> >>>
> >>>I think I've noticed the same behaviour in the Table widget.
> >>>
> >>>Thanks in advance for any helpful insights...
> >>>
Re: List selection gone when focus is lost [message #437204 is a reply to message #437167] Tue, 01 June 2004 02:30 Go to previous messageGo to next message
Eclipse UserFriend
Neil Clayton wrote:

> On Sun, 30 May 2004 09:38:56 +0100, Neil Clayton wrote:

> > On Fri, 28 May 2004 09:42:41 +0000, Mattias wrote:
> >
> >> Hi!
> >>
> >> I've got a simple List widget in my UI. When the list loses the focus the
> >> selection in the list is lost (it's not visible anymore anyway). Is it
> >> supposed to be this way? Is there a setting to control this behaviour?
> >> When I've made a selection inside the List I always want the selection to
> >> be visible, no matter where the focus has gone to!
> >>
> >> I think I've noticed the same behaviour in the Table widget.
> >>
> >> Thanks in advance for any helpful insights...
> >
> > Hi,
> >
> > have you found the solution to this yet?
> > I'm getting it as well, on many different themes (havn't tried another
> > linux box yet). Wondering if you've found any further information.
> >
> > Regards,
> > Neil Clayton

> I've now found that it's probably KDE. GTK is fine under Sawfish and
> GNOME. I tracked it down the the configuration file written by KDE, when
> you choose to make GTK's colours the same as KDEs. If you turn this off
> (that particular config file is then cleared out) - the problem goes away.

> The config file will be mentioned in the env var GTK2_RC_FILES. So, look
> under there if you want to find out where it is. Mine was at
> /home/neil/.kde/share/config/gtkrc

> Hope this is of help to others.

> Neil

Great work Neil! I'm gonna try this out. Thanks!

- Mattias
Re: List selection gone when focus is lost [message #437214 is a reply to message #437203] Tue, 01 June 2004 09:38 Go to previous message
Eclipse UserFriend
It's a bug in kcontrol/krdb. I filed it here:

http://bugs.kde.org/show_bug.cgi?id=82619

-Billy

Mattias wrote:
> I'm using KDE!
>
> - Mattias
>
> Billy Biggs wrote:
>
>
>>Mattias wrote:
>>
>>>Yeah, I'm running linux GTK. I should have mentioned it in my message. So
>>>it's the GTK's fault then? Nothing to be done?
>
>
>> Which theme are you using?
>
>
>> You should determine which theme it is and file a usability bug
>>against them, and change your theme!
>
>
>> -Billy
>
>
>>>>Assuming you're running on linux-gtk, there is a theme that does this. I
>>>>used to see this on a previous linux install and it drove me crazy. The
>>>>selection would even disappear when right-clicking on a tree item in the
>>>>package explorer, because focus was given to the context menu.
>>>
>>>
>>>>The only other possibility is you're seeing a Table with the
>>>>SWT.HIDE_SELECTION style. I don't think there are any of these in eclipse
>>>>though.
>>>
>>>>Grant
>>>
>>>>"Mattias" <mattias.soderin@compiere.se> wrote in message
>>>>news:c971ih$b5i$1@eclipse.org...
>>>>
>>>>
>>>>>Hi!
>>>>>
>>>>>I've got a simple List widget in my UI. When the list loses the focus the
>>>>>selection in the list is lost (it's not visible anymore anyway). Is it
>>>>>supposed to be this way? Is there a setting to control this behaviour?
>>>>>When I've made a selection inside the List I always want the selection to
>>>>>be visible, no matter where the focus has gone to!
>>>>>
>>>>>I think I've noticed the same behaviour in the Table widget.
>>>>>
>>>>>Thanks in advance for any helpful insights...
>>>>>
>
>
>
Previous Topic:Using Post in Navigate method of Web Browser problem - OLE Automation
Next Topic:[Fwd: Change look of the progress bar in the progress view]
Goto Forum:
  


Current Time: Mon Jul 14 11:03:55 EDT 2025

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

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

Back to the top