Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Want to show Tree selection when tree does not have focus
Want to show Tree selection when tree does not have focus [message #458665] Mon, 18 July 2005 19:27 Go to next message
Agnes Freese is currently offline Agnes FreeseFriend
Messages: 14
Registered: July 2009
Junior Member
Hi,

I have a composite control that contains two Tree controls. The selected
item in each tree is shown only when the particular tree has focus. I would
like to be able to highlight or show the selected items in both trees
regardless of which has focus. Is there any way to do this?

I have tried doing things like changing the background color of the selected
item in the tree that has lost focus, but I do not seem to be able to get
the tree to refresh/repaint until it is back in focus again.

Any ideas on how to do this?

Thanks,
Agnes
Re: Want to show Tree selection when tree does not have focus [message #458695 is a reply to message #458665] Tue, 19 July 2005 15:10 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
What platform are you running on? This sounds like a bug.

"Agnes Freese" <afreese@siebel.com> wrote in message
news:dbgvrq$g3k$1@news.eclipse.org...
> Hi,
>
> I have a composite control that contains two Tree controls. The selected
> item in each tree is shown only when the particular tree has focus. I
> would
> like to be able to highlight or show the selected items in both trees
> regardless of which has focus. Is there any way to do this?
>
> I have tried doing things like changing the background color of the
> selected
> item in the tree that has lost focus, but I do not seem to be able to get
> the tree to refresh/repaint until it is back in focus again.
>
> Any ideas on how to do this?
>
> Thanks,
> Agnes
>
>
Re: Want to show Tree selection when tree does not have focus [message #458699 is a reply to message #458695] Tue, 19 July 2005 15:35 Go to previous messageGo to next message
Agnes Freese is currently offline Agnes FreeseFriend
Messages: 14
Registered: July 2009
Junior Member
OS Name Microsoft Windows XP Professional
Version 5.1.2600 Service Pack 2 Build 2600


"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:dbj54n$th5$1@news.eclipse.org...
> What platform are you running on? This sounds like a bug.
>
> "Agnes Freese" <afreese@siebel.com> wrote in message
> news:dbgvrq$g3k$1@news.eclipse.org...
> > Hi,
> >
> > I have a composite control that contains two Tree controls. The
selected
> > item in each tree is shown only when the particular tree has focus. I
> > would
> > like to be able to highlight or show the selected items in both trees
> > regardless of which has focus. Is there any way to do this?
> >
> > I have tried doing things like changing the background color of the
> > selected
> > item in the tree that has lost focus, but I do not seem to be able to
get
> > the tree to refresh/repaint until it is back in focus again.
> >
> > Any ideas on how to do this?
> >
> > Thanks,
> > Agnes
> >
> >
>
>
Re: Want to show Tree selection when tree does not have focus [message #458714 is a reply to message #458699] Tue, 19 July 2005 20:48 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
On Windows XP with Service Pack 2, I see selection even when the tree does
not have focus.

The selection is blue when the tree has focus and gray when the tree does
not have focus but it is definitely visible.

Please enter a bug report against Platform SWT and we will try to figure out
what is the problem for you.

"Agnes Freese" <afreese@siebel.com> wrote in message
news:dbj6jf$vng$1@news.eclipse.org...
> OS Name Microsoft Windows XP Professional
> Version 5.1.2600 Service Pack 2 Build 2600
>
>
> "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> news:dbj54n$th5$1@news.eclipse.org...
>> What platform are you running on? This sounds like a bug.
>>
>> "Agnes Freese" <afreese@siebel.com> wrote in message
>> news:dbgvrq$g3k$1@news.eclipse.org...
>> > Hi,
>> >
>> > I have a composite control that contains two Tree controls. The
> selected
>> > item in each tree is shown only when the particular tree has focus. I
>> > would
>> > like to be able to highlight or show the selected items in both trees
>> > regardless of which has focus. Is there any way to do this?
>> >
>> > I have tried doing things like changing the background color of the
>> > selected
>> > item in the tree that has lost focus, but I do not seem to be able to
> get
>> > the tree to refresh/repaint until it is back in focus again.
>> >
>> > Any ideas on how to do this?
>> >
>> > Thanks,
>> > Agnes
>> >
>> >
>>
>>
>
>
Re: Want to show Tree selection when tree does not have focus [message #458716 is a reply to message #458714] Wed, 20 July 2005 00:30 Go to previous messageGo to next message
Agnes Freese is currently offline Agnes FreeseFriend
Messages: 14
Registered: July 2009
Junior Member
Hi Veronika,

Thanks for your response.

It appears that my problem is one of color selection. The Tree control in
3.1 with columns shows white grid lines. I got another response from
someone else saying that this was something that I cannot change. If you
can also verify this I would appreciate it.

Because of the white grid lines (TableTree used to have black or gray grid
lines), I had to set a color for the background of the Tree so I could see
the white lines. Unfortunately, the color I chose is the same as the
highlight color for the selected item when the tree is out of focus. When I
set the background back to white, I can see the selection.

It is rather disappointing that the grid lines are white in 3.1. This makes
it necessary to select colors for the background. Is there any chance of
some default color being selected for the background that is not white like
the lines so that the initial implementation will show the lines?

Thanks,
Agnes

"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:dbjovd$nlh$1@news.eclipse.org...
> On Windows XP with Service Pack 2, I see selection even when the tree does
> not have focus.
>
> The selection is blue when the tree has focus and gray when the tree does
> not have focus but it is definitely visible.
>
> Please enter a bug report against Platform SWT and we will try to figure
out
> what is the problem for you.
>
> "Agnes Freese" <afreese@siebel.com> wrote in message
> news:dbj6jf$vng$1@news.eclipse.org...
> > OS Name Microsoft Windows XP Professional
> > Version 5.1.2600 Service Pack 2 Build 2600
> >
> >
> > "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> > news:dbj54n$th5$1@news.eclipse.org...
> >> What platform are you running on? This sounds like a bug.
> >>
> >> "Agnes Freese" <afreese@siebel.com> wrote in message
> >> news:dbgvrq$g3k$1@news.eclipse.org...
> >> > Hi,
> >> >
> >> > I have a composite control that contains two Tree controls. The
> > selected
> >> > item in each tree is shown only when the particular tree has focus.
I
> >> > would
> >> > like to be able to highlight or show the selected items in both trees
> >> > regardless of which has focus. Is there any way to do this?
> >> >
> >> > I have tried doing things like changing the background color of the
> >> > selected
> >> > item in the tree that has lost focus, but I do not seem to be able to
> > get
> >> > the tree to refresh/repaint until it is back in focus again.
> >> >
> >> > Any ideas on how to do this?
> >> >
> >> > Thanks,
> >> > Agnes
> >> >
> >> >
> >>
> >>
> >
> >
>
>
Re: Want to show Tree selection when tree does not have focus [message #458740 is a reply to message #458716] Wed, 20 July 2005 13:35 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
For me the grid-lines are not white but a light gray colour. I have tried
with and without a manifest on Windows XP and in both cases I can see the
lines against the white background. I have tried with the Windows XP Style
with sub-design Blue(standard) and Silver - all work for me. Do you have a
windows skin applied to your desktop?


"Agnes Freese" <afreese@siebel.com> wrote in message
news:dbk5v3$3l3$1@news.eclipse.org...
> Hi Veronika,
>
> Thanks for your response.
>
> It appears that my problem is one of color selection. The Tree control in
> 3.1 with columns shows white grid lines. I got another response from
> someone else saying that this was something that I cannot change. If you
> can also verify this I would appreciate it.
>
> Because of the white grid lines (TableTree used to have black or gray grid
> lines), I had to set a color for the background of the Tree so I could see
> the white lines. Unfortunately, the color I chose is the same as the
> highlight color for the selected item when the tree is out of focus. When
> I
> set the background back to white, I can see the selection.
>
> It is rather disappointing that the grid lines are white in 3.1. This
> makes
> it necessary to select colors for the background. Is there any chance of
> some default color being selected for the background that is not white
> like
> the lines so that the initial implementation will show the lines?
>
> Thanks,
> Agnes
>
> "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> news:dbjovd$nlh$1@news.eclipse.org...
>> On Windows XP with Service Pack 2, I see selection even when the tree
>> does
>> not have focus.
>>
>> The selection is blue when the tree has focus and gray when the tree does
>> not have focus but it is definitely visible.
>>
>> Please enter a bug report against Platform SWT and we will try to figure
> out
>> what is the problem for you.
>>
>> "Agnes Freese" <afreese@siebel.com> wrote in message
>> news:dbj6jf$vng$1@news.eclipse.org...
>> > OS Name Microsoft Windows XP Professional
>> > Version 5.1.2600 Service Pack 2 Build 2600
>> >
>> >
>> > "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
>> > news:dbj54n$th5$1@news.eclipse.org...
>> >> What platform are you running on? This sounds like a bug.
>> >>
>> >> "Agnes Freese" <afreese@siebel.com> wrote in message
>> >> news:dbgvrq$g3k$1@news.eclipse.org...
>> >> > Hi,
>> >> >
>> >> > I have a composite control that contains two Tree controls. The
>> > selected
>> >> > item in each tree is shown only when the particular tree has focus.
> I
>> >> > would
>> >> > like to be able to highlight or show the selected items in both
>> >> > trees
>> >> > regardless of which has focus. Is there any way to do this?
>> >> >
>> >> > I have tried doing things like changing the background color of the
>> >> > selected
>> >> > item in the tree that has lost focus, but I do not seem to be able
>> >> > to
>> > get
>> >> > the tree to refresh/repaint until it is back in focus again.
>> >> >
>> >> > Any ideas on how to do this?
>> >> >
>> >> > Thanks,
>> >> > Agnes
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>
Re: Want to show Tree selection when tree does not have focus [message #458897 is a reply to message #458740] Mon, 25 July 2005 19:05 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Agnes,

Just to eliminate the obvious, you're NOT creating your Trees with style
SWT.HIDE_SELECTION or SWT.PRIMARY_MODAL, right?

Grant

"Veronika Irvine" <veronika_irvine@oti.com> wrote in message
news:dbljuk$jts$1@news.eclipse.org...
> For me the grid-lines are not white but a light gray colour. I have tried
> with and without a manifest on Windows XP and in both cases I can see the
> lines against the white background. I have tried with the Windows XP
Style
> with sub-design Blue(standard) and Silver - all work for me. Do you have
a
> windows skin applied to your desktop?
>
>
> "Agnes Freese" <afreese@siebel.com> wrote in message
> news:dbk5v3$3l3$1@news.eclipse.org...
> > Hi Veronika,
> >
> > Thanks for your response.
> >
> > It appears that my problem is one of color selection. The Tree control
in
> > 3.1 with columns shows white grid lines. I got another response from
> > someone else saying that this was something that I cannot change. If
you
> > can also verify this I would appreciate it.
> >
> > Because of the white grid lines (TableTree used to have black or gray
grid
> > lines), I had to set a color for the background of the Tree so I could
see
> > the white lines. Unfortunately, the color I chose is the same as the
> > highlight color for the selected item when the tree is out of focus.
When
> > I
> > set the background back to white, I can see the selection.
> >
> > It is rather disappointing that the grid lines are white in 3.1. This
> > makes
> > it necessary to select colors for the background. Is there any chance
of
> > some default color being selected for the background that is not white
> > like
> > the lines so that the initial implementation will show the lines?
> >
> > Thanks,
> > Agnes
> >
> > "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> > news:dbjovd$nlh$1@news.eclipse.org...
> >> On Windows XP with Service Pack 2, I see selection even when the tree
> >> does
> >> not have focus.
> >>
> >> The selection is blue when the tree has focus and gray when the tree
does
> >> not have focus but it is definitely visible.
> >>
> >> Please enter a bug report against Platform SWT and we will try to
figure
> > out
> >> what is the problem for you.
> >>
> >> "Agnes Freese" <afreese@siebel.com> wrote in message
> >> news:dbj6jf$vng$1@news.eclipse.org...
> >> > OS Name Microsoft Windows XP Professional
> >> > Version 5.1.2600 Service Pack 2 Build 2600
> >> >
> >> >
> >> > "Veronika Irvine" <veronika_irvine@oti.com> wrote in message
> >> > news:dbj54n$th5$1@news.eclipse.org...
> >> >> What platform are you running on? This sounds like a bug.
> >> >>
> >> >> "Agnes Freese" <afreese@siebel.com> wrote in message
> >> >> news:dbgvrq$g3k$1@news.eclipse.org...
> >> >> > Hi,
> >> >> >
> >> >> > I have a composite control that contains two Tree controls. The
> >> > selected
> >> >> > item in each tree is shown only when the particular tree has
focus.
> > I
> >> >> > would
> >> >> > like to be able to highlight or show the selected items in both
> >> >> > trees
> >> >> > regardless of which has focus. Is there any way to do this?
> >> >> >
> >> >> > I have tried doing things like changing the background color of
the
> >> >> > selected
> >> >> > item in the tree that has lost focus, but I do not seem to be able
> >> >> > to
> >> > get
> >> >> > the tree to refresh/repaint until it is back in focus again.
> >> >> >
> >> >> > Any ideas on how to do this?
> >> >> >
> >> >> > Thanks,
> >> >> > Agnes
> >> >> >
> >> >> >
> >> >>
> >> >>
> >> >
> >> >
> >>
> >>
> >
> >
>
>
Previous Topic:Cell focus in a table
Next Topic:Memory currently allocated by SWT?
Goto Forum:
  


Current Time: Thu Apr 25 07:19:26 GMT 2024

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

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

Back to the top