[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: showColumn() bug?
|
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@xxxxxxxxxx> wrote in message
news:dilmen$v1v$1@xxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxx> wrote in message
> news:dile7g$jn0$1@xxxxxxxxxxxxxxxxxxx
>> 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.
>>
>>
>
>