Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Sort indicator in table header
Sort indicator in table header [message #458164] Mon, 11 July 2005 13:30 Go to next message
Andy Arhelger is currently offline Andy ArhelgerFriend
Messages: 62
Registered: July 2009
Member
Since there is no way to add a sort indicator I need to figure out a
work around. I can simply add an image to the table header. This sort of
works except it always shows on the left and the table header seems to
resize the image somehow and causes oddly shaped sort icons. Also I
can't also display any other image on the table header.

Another method I tried is actually creating a new image where I draw any
specified table header image, the header text and then add any sort
icon. I figured this should work if I then just disply the image in the
table header with no text. What I am seeing here is the strange reizing
of the image. The table header seems to try and shrink my image down to
something very narrow. Is there anyway to allow the image to take up the
entire table header space?

Any other solutions?

Andy Arhelger
Re: Sort indicator in table header [message #458267 is a reply to message #458164] Tue, 12 July 2005 14:10 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
We are very close to releasing the code for this. It was supposed to go
into 3.1 but we ran out of time. Please add yourself to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=43192 and stand by!

As for the other issues you are seeing (other than the image in the right
which is a known problem), can you enter a bug report with the code?

"Andy Arhelger" <juggle@us.ibm.com> wrote in message
news:dats8u$vgd$1@news.eclipse.org...
> Since there is no way to add a sort indicator I need to figure out a
> work around. I can simply add an image to the table header. This sort of
> works except it always shows on the left and the table header seems to
> resize the image somehow and causes oddly shaped sort icons. Also I
> can't also display any other image on the table header.
>
> Another method I tried is actually creating a new image where I draw any
> specified table header image, the header text and then add any sort
> icon. I figured this should work if I then just disply the image in the
> table header with no text. What I am seeing here is the strange reizing
> of the image. The table header seems to try and shrink my image down to
> something very narrow. Is there anyway to allow the image to take up the
> entire table header space?
>
> Any other solutions?
>
> Andy Arhelger
Re: Sort indicator in table header [message #458402 is a reply to message #458267] Tue, 12 July 2005 22:01 Go to previous messageGo to next message
Andy Arhelger is currently offline Andy ArhelgerFriend
Messages: 62
Registered: July 2009
Member
Steve:

I have tried to reproduce this and found it wasn't easy. I actually have
a table row with images in 2 different columns. Then when I try to place
the generated image in the table column it gets compressed. Is there any
limit or restriction on images in table cells or table columns? It seems
like I can't have an image in all theree places. 2 of the 3 work OK but
not all 3. I will keep working on a testcase.

Andy Arhelger


Steve Northover wrote:
> We are very close to releasing the code for this. It was supposed to go
> into 3.1 but we ran out of time. Please add yourself to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=43192 and stand by!
>
> As for the other issues you are seeing (other than the image in the right
> which is a known problem), can you enter a bug report with the code?
>
> "Andy Arhelger" <juggle@us.ibm.com> wrote in message
> news:dats8u$vgd$1@news.eclipse.org...
>
>>Since there is no way to add a sort indicator I need to figure out a
>>work around. I can simply add an image to the table header. This sort of
>>works except it always shows on the left and the table header seems to
>>resize the image somehow and causes oddly shaped sort icons. Also I
>>can't also display any other image on the table header.
>>
>>Another method I tried is actually creating a new image where I draw any
>>specified table header image, the header text and then add any sort
>>icon. I figured this should work if I then just disply the image in the
>>table header with no text. What I am seeing here is the strange reizing
>>of the image. The table header seems to try and shrink my image down to
>>something very narrow. Is there anyway to allow the image to take up the
>>entire table header space?
>>
>>Any other solutions?
>>
>>Andy Arhelger
>
>
>
Re: Sort indicator in table header [message #458404 is a reply to message #458402] Tue, 12 July 2005 22:44 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Go ahead and try the code. It's released.

"Andy Arhelger" <juggle@us.ibm.com> wrote in message
news:42D43DB5.1020309@us.ibm.com...
> Steve:
>
> I have tried to reproduce this and found it wasn't easy. I actually have
> a table row with images in 2 different columns. Then when I try to place
> the generated image in the table column it gets compressed. Is there any
> limit or restriction on images in table cells or table columns? It seems
> like I can't have an image in all theree places. 2 of the 3 work OK but
> not all 3. I will keep working on a testcase.
>
> Andy Arhelger
>
>
> Steve Northover wrote:
> > We are very close to releasing the code for this. It was supposed to go
> > into 3.1 but we ran out of time. Please add yourself to
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=43192 and stand by!
> >
> > As for the other issues you are seeing (other than the image in the
right
> > which is a known problem), can you enter a bug report with the code?
> >
> > "Andy Arhelger" <juggle@us.ibm.com> wrote in message
> > news:dats8u$vgd$1@news.eclipse.org...
> >
> >>Since there is no way to add a sort indicator I need to figure out a
> >>work around. I can simply add an image to the table header. This sort of
> >>works except it always shows on the left and the table header seems to
> >>resize the image somehow and causes oddly shaped sort icons. Also I
> >>can't also display any other image on the table header.
> >>
> >>Another method I tried is actually creating a new image where I draw any
> >>specified table header image, the header text and then add any sort
> >>icon. I figured this should work if I then just disply the image in the
> >>table header with no text. What I am seeing here is the strange reizing
> >>of the image. The table header seems to try and shrink my image down to
> >>something very narrow. Is there anyway to allow the image to take up the
> >>entire table header space?
> >>
> >>Any other solutions?
> >>
> >>Andy Arhelger
> >
> >
> >
Re: Sort indicator in table header [message #458421 is a reply to message #458404] Wed, 13 July 2005 13:19 Go to previous message
Andy Arhelger is currently offline Andy ArhelgerFriend
Messages: 62
Registered: July 2009
Member
OK, I will try it but we probably can't use it. We will need to code
based on the SWT 3.1 which is released with Eclipse since we may run as
an Eclipse plugin and eventually in RAD when they support 3.1. And we
also need a way to indicate sort column order. I.E. we can sort a
primary column then secondary etc.

Andy Arhelger


Steve Northover wrote:
> Go ahead and try the code. It's released.
>
> "Andy Arhelger" <juggle@us.ibm.com> wrote in message
> news:42D43DB5.1020309@us.ibm.com...
>
>>Steve:
>>
>>I have tried to reproduce this and found it wasn't easy. I actually have
>>a table row with images in 2 different columns. Then when I try to place
>>the generated image in the table column it gets compressed. Is there any
>>limit or restriction on images in table cells or table columns? It seems
>>like I can't have an image in all theree places. 2 of the 3 work OK but
>>not all 3. I will keep working on a testcase.
>>
>>Andy Arhelger
>>
>>
>>Steve Northover wrote:
>>
>>>We are very close to releasing the code for this. It was supposed to go
>>>into 3.1 but we ran out of time. Please add yourself to
>>>https://bugs.eclipse.org/bugs/show_bug.cgi?id=43192 and stand by!
>>>
>>>As for the other issues you are seeing (other than the image in the
>
> right
>
>>>which is a known problem), can you enter a bug report with the code?
>>>
>>>"Andy Arhelger" <juggle@us.ibm.com> wrote in message
>>>news:dats8u$vgd$1@news.eclipse.org...
>>>
>>>
>>>>Since there is no way to add a sort indicator I need to figure out a
>>>>work around. I can simply add an image to the table header. This sort of
>>>>works except it always shows on the left and the table header seems to
>>>>resize the image somehow and causes oddly shaped sort icons. Also I
>>>>can't also display any other image on the table header.
>>>>
>>>>Another method I tried is actually creating a new image where I draw any
>>>>specified table header image, the header text and then add any sort
>>>>icon. I figured this should work if I then just disply the image in the
>>>>table header with no text. What I am seeing here is the strange reizing
>>>>of the image. The table header seems to try and shrink my image down to
>>>>something very narrow. Is there anyway to allow the image to take up the
>>>>entire table header space?
>>>>
>>>>Any other solutions?
>>>>
>>>>Andy Arhelger
>>>
>>>
>>>
>
>
Previous Topic:swt-pi-gtk-3138 error
Next Topic:VIRTUAL - how to use it?
Goto Forum:
  


Current Time: Thu Apr 25 05:14:39 GMT 2024

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

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

Back to the top