List selection gone when focus is lost [message #437058] |
Fri, 28 May 2004 05:42  |
Eclipse User |
|
|
|
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 #437167 is a reply to message #437166] |
Sun, 30 May 2004 08:33   |
Eclipse User |
|
|
|
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 #437204 is a reply to message #437167] |
Tue, 01 June 2004 02:30   |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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...
>>>>>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.08139 seconds