是否可以像列表框一样通过鼠标拖动来选择树框中的多个选项?在树形框中,当“多选”设置为 1 时,允许在树形框中选择多个选项(如 JSL 脚本所示)。但是,与列表框不同,在这种情况下,需要按住 Ctrl 键才能进行多选。有没有办法像列表框一样,不仅可以通过按住 Ctrl 键来选择多个项目,还可以通过拖动鼠标左键来选择多个项目?
root1 = Tree Node( "Parent 1" );
root2 = Tree Node( "Parent 2" );
c1 = Tree Node( "Child 1" );
c2 = Tree Node( "Child 2" );
c3 = Tree Node( "Child 11" );
c4 = Tree Node( "Child 4" );
root1 << Append( c1 );
root1 << Append( c2 );
root1 << Append( c3 );
root1 << Append( c4 );
nw = New Window( "TreeBox",
tree = Tree Box( {root1, root2}, Size( 300, 200 ), Multiselect( 1 ) ),
List Box( {c1, c2, c3, c4} ),
tree << Make Visible( C3 ),
);
自动化和脚本回复:是否可以像列表框一样通过鼠标拖动来选择树框中的多个选项?除了使用 Ctrl 之外,使用 shift 是否足够,因为它会在选择之间选择项目?