Not scroll when related scrollbar disposed [message #1296582] |
Tue, 15 April 2014 04:25 |
Jingang Zhou Messages: 57 Registered: December 2010 |
Member |
|
|
Hi, all
I want to realize the effect of scrolling by code rather than by drag the scrollbar of a tree, so I dispose the scrolbar using the code like :
tree.getVerticalBar().dispose();
and in another event listener I write like :
tree.setTopItem(specifiedItem);
I found that the second code only works under the situation that the scrolbar is not disposed, but Why?
And this is different from a table widget, since I can control the scrolling of a table even its related scollbar is disposed.
Who can explain this?
Thanks.
Robin.
[Updated on: Tue, 15 April 2014 04:26] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03004 seconds