Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » showColumn() bug?
showColumn() bug? [message #462512] Thu, 13 October 2005 10:51 Go to next message
Tim Shelley is currently offline Tim ShelleyFriend
Messages: 60
Registered: July 2009
Member
Hi,

I have a tree with treecolumns. The width of the tree often means some of
the treecolumns appear offscreen, outside of the client area.

I've tried to use showColumn() but it seems to have a bug that makes it
difficult for cell editing where you want the column to be fully visible. If
the columns left edge appears off screen it scrolls correctly and makes this
column fully visible. If a columns left edge appears on the screen, but its
right edge is off the screen, it thinks the column is visible and does not
scroll to it (even though there may be only a few pixels of the column on
screen).

I cannot extend the Tree class and there seems no way to work around this
problem because the scrolling functionality of Tree seems to be all private
or package local.

Is there a work around for this problem?

Regards,

Tim.
Re: showColumn() bug? [message #462523 is a reply to message #462512] Thu, 13 October 2005 13:11 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
Hi Tim,

I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=112463 , and tried
to add you as a CC but couldn't because bugzilla did not know of your email
address. Interestingly I see the opposite problem to what you describe (my
snippet shows it failing when the column's LEFT edge is out of view). I
added a second comment to the report specifying that both cases should be
checked.

Regarding workarounds, I can make my snippet in the bug report show column 2
by first showing column 1 and then column 2 (so just add
"tree.showColumn(column1);" as the first line in the Button selection
listener). On win2000 this did not show any extra flash for me. It's just
an idea, as I can't think of any other workarounds at the moment.

Grant


"Tim Shelley" <tim_j_shelley@hotmail.com> wrote in message
news:dile7g$jn0$1@news.eclipse.org...
> Hi,
>
> I have a tree with treecolumns. The width of the tree often means some of
> the treecolumns appear offscreen, outside of the client area.
>
> I've tried to use showColumn() but it seems to have a bug that makes it
> difficult for cell editing where you want the column to be fully visible.
If
> the columns left edge appears off screen it scrolls correctly and makes
this
> column fully visible. If a columns left edge appears on the screen, but
its
> right edge is off the screen, it thinks the column is visible and does not
> scroll to it (even though there may be only a few pixels of the column on
> screen).
>
> I cannot extend the Tree class and there seems no way to work around this
> problem because the scrolling functionality of Tree seems to be all
private
> or package local.
>
> Is there a work around for this problem?
>
> Regards,
>
> Tim.
>
>
Re: showColumn() bug? [message #462550 is a reply to message #462523] Thu, 13 October 2005 14:31 Go to previous messageGo to next message
Tim Shelley is currently offline Tim ShelleyFriend
Messages: 60
Registered: July 2009
Member
Hi Grant,

Thanks for the quick reply.

I've implemented your workaround, but have not tested it with lots of data
in the tree. I had to write another workaround for if it was the last
column, cause there are no columns after it :) I just added a hidden column,
zero width and not resizable. That seems to work ok.

The problem I am having now is with the cellEditor that opens on the column.
If the column is partially showing, the showColumn now displays it
correctly. When the cellEditor appears, its width is based on the partial
column width, not the full column that is now displayed.

I do -

showColumn()
treeEditor.setEditor()

It's as if the treeEditor is using the old column width and has not
refreshed with the new view with the fully displayed column.

Regards,

Tim.

"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:dilmen$v1v$1@news.eclipse.org...
> Hi Tim,
>
> I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=112463 , and
> tried
> to add you as a CC but couldn't because bugzilla did not know of your
> email
> address. Interestingly I see the opposite problem to what you describe
> (my
> snippet shows it failing when the column's LEFT edge is out of view). I
> added a second comment to the report specifying that both cases should be
> checked.
>
> Regarding workarounds, I can make my snippet in the bug report show column
> 2
> by first showing column 1 and then column 2 (so just add
> "tree.showColumn(column1);" as the first line in the Button selection
> listener). On win2000 this did not show any extra flash for me. It's
> just
> an idea, as I can't think of any other workarounds at the moment.
>
> Grant
>
>
> "Tim Shelley" <tim_j_shelley@hotmail.com> wrote in message
> news:dile7g$jn0$1@news.eclipse.org...
>> Hi,
>>
>> I have a tree with treecolumns. The width of the tree often means some of
>> the treecolumns appear offscreen, outside of the client area.
>>
>> I've tried to use showColumn() but it seems to have a bug that makes it
>> difficult for cell editing where you want the column to be fully visible.
> If
>> the columns left edge appears off screen it scrolls correctly and makes
> this
>> column fully visible. If a columns left edge appears on the screen, but
> its
>> right edge is off the screen, it thinks the column is visible and does
>> not
>> scroll to it (even though there may be only a few pixels of the column on
>> screen).
>>
>> I cannot extend the Tree class and there seems no way to work around this
>> problem because the scrolling functionality of Tree seems to be all
> private
>> or package local.
>>
>> Is there a work around for this problem?
>>
>> Regards,
>>
>> Tim.
>>
>>
>
>
Re: showColumn() bug? [message #462595 is a reply to message #462550] Fri, 14 October 2005 13:17 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
I've looked into this and it appears to be another (more general) Tree bug.
I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=112622 .

"Tim Shelley" <tim_j_shelley@hotmail.com> wrote in message
news:dilr47$643$1@news.eclipse.org...
> Hi Grant,
>
> Thanks for the quick reply.
>
> I've implemented your workaround, but have not tested it with lots of data
> in the tree. I had to write another workaround for if it was the last
> column, cause there are no columns after it :) I just added a hidden
column,
> zero width and not resizable. That seems to work ok.
>
> The problem I am having now is with the cellEditor that opens on the
column.
> If the column is partially showing, the showColumn now displays it
> correctly. When the cellEditor appears, its width is based on the partial
> column width, not the full column that is now displayed.
>
> I do -
>
> showColumn()
> treeEditor.setEditor()
>
> It's as if the treeEditor is using the old column width and has not
> refreshed with the new view with the fully displayed column.
>
> Regards,
>
> Tim.
>
> "Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
> news:dilmen$v1v$1@news.eclipse.org...
> > Hi Tim,
> >
> > I've logged https://bugs.eclipse.org/bugs/show_bug.cgi?id=112463 , and
> > tried
> > to add you as a CC but couldn't because bugzilla did not know of your
> > email
> > address. Interestingly I see the opposite problem to what you describe
> > (my
> > snippet shows it failing when the column's LEFT edge is out of view). I
> > added a second comment to the report specifying that both cases should
be
> > checked.
> >
> > Regarding workarounds, I can make my snippet in the bug report show
column
> > 2
> > by first showing column 1 and then column 2 (so just add
> > "tree.showColumn(column1);" as the first line in the Button selection
> > listener). On win2000 this did not show any extra flash for me. It's
> > just
> > an idea, as I can't think of any other workarounds at the moment.
> >
> > Grant
> >
> >
> > "Tim Shelley" <tim_j_shelley@hotmail.com> wrote in message
> > news:dile7g$jn0$1@news.eclipse.org...
> >> Hi,
> >>
> >> I have a tree with treecolumns. The width of the tree often means some
of
> >> the treecolumns appear offscreen, outside of the client area.
> >>
> >> I've tried to use showColumn() but it seems to have a bug that makes it
> >> difficult for cell editing where you want the column to be fully
visible.
> > If
> >> the columns left edge appears off screen it scrolls correctly and makes
> > this
> >> column fully visible. If a columns left edge appears on the screen, but
> > its
> >> right edge is off the screen, it thinks the column is visible and does
> >> not
> >> scroll to it (even though there may be only a few pixels of the column
on
> >> screen).
> >>
> >> I cannot extend the Tree class and there seems no way to work around
this
> >> problem because the scrolling functionality of Tree seems to be all
> > private
> >> or package local.
> >>
> >> Is there a work around for this problem?
> >>
> >> Regards,
> >>
> >> Tim.
> >>
> >>
> >
> >
>
>
Previous Topic:SWT + JVM Crash On Win XP
Next Topic:Find&Replace Items values into Tree
Goto Forum:
  


Current Time: Sat Apr 20 01:38:01 GMT 2024

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

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

Back to the top