基于面板滚动的树状视图项目排列 [英] Tree View items arrangement based on the panel scroll

查看:93
本文介绍了基于面板滚动的树状视图项目排列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

以下是我的树状视图的要求.我必须按照以下方式排列树节点项,即那些超出面板视图且需要滚动以查看所选项的树节点项,始终需要确保将其移动到树形节点项的可见区域. 当expand_all发生时的面板.同样,对于crash_all也是如此.下图说明了要求.请帮忙.

Below is the requirement for my treeview. I have to arrange the tree node items in such a way that those that are beyond the panel view and need to be scrolled to see the selected items, always need to be made sure that they move to the visible area of the panel when a expand_all happens. Similarly for collapse_all as well. Below is the diagram that explains the requirement. Please help.

Vidya Suryanarayana

Vidya Suryanarayana

推荐答案

treeview具有"scrollable"属性.用于指示如果控件包含的节点数超出可见区域的容纳量,则该控件是否将显示滚动条.

treeview has a property "scrollable" for indicating whether the control will display scroll bars if it contains more nodes than it can fit in the visible area.

如果您将scrollable设置为true,则控件将自动具有滚动条.  并且所选项目始终在可见区域.

if you set scrollable = true, the control will have scroll bars automatically.  And a selected item is always in a visible area.


这篇关于基于面板滚动的树状视图项目排列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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