Treeview滚动条不会出现在拆分容器中 [英] Treeview scroll bars do not appear in split container

查看:58
本文介绍了Treeview滚动条不会出现在拆分容器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在拆分容器中有一个树视图。 我将treeview scrollable属性设置为True,这样当树变得大于分割面板的大小时,将出现滚动条。 这不起作用。 如果我理解正确,
拆分面板的AutoScroll应设置为false,因为我不希望基于树视图不可见而显示滚动条。 我关心的是树节点不可见。 有什么想法吗?

I have a treeview in a split container.  I have the treeview scrollable property set to True so that when the tree gets bigger than the size of the split panel scroll bars will appear.  This is not working.  If I understand correctly, the split panel's AutoScroll should be set to false since I don't want the scroll bars to appear based on the treeview not being visible.  What I am concerned with is tree nodes not being visible.  Any ideas?

推荐答案

如果为 TreeView 设置
Scrollable = True ,则滚动条将显示为$当扩展节点太多时,b $ b TreeView (不是通过拆分面板)。

If you set Scrollable=True for TreeView, then the scrollbars are displayed by TreeView (not by split panel) when there are too many expanded nodes.

确保
TreeView 不大于面板。如果面板中没有其他控件,则为 TreeView 设置
Scrollable = True Dock = Full ,和
AutoScroll = False 面板。

Make sure that the TreeView is not larger than the panel. If there are no other controls in the panel, then set Scrollable=True and Dock=Full for TreeView, and AutoScroll=False for panel.

如果无法对
TreeView 应用停靠,则设置其大小并考虑 Anchor

If docking cannot be applied for TreeView, then set its sizes and consider Anchor.


这篇关于Treeview滚动条不会出现在拆分容器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆