如果动态创建树的节点,一般树的滚动条就停留在下边了,那是因为创建节点的时候,焦点自动移到新创建的节点上,如果显示不下,他回显示焦点及以上的节点,在Delphi中树(TTreeView)有个TopItem属性来表示从哪个节点开始显示。
Delphi中帮助描述:
Specifies the topmost node that appears in the tree view.
property TopItem: TTreeNode;
Description
When TopItem is changed, the tree view scrolls vertically so that the specified node is topmost in the list view.
No Comments for this post yet...
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| << < | ||||||
| 1 | 2 | 3 | 4 | 5 | ||
| 6 | 7 | 8 | 9 | 10 | 11 | 12 |
| 13 | 14 | 15 | 16 | 17 | 18 | 19 |
| 20 | 21 | 22 | 23 | 24 | 25 | 26 |
| 27 | 28 | 29 | 30 | |||