是否可以像列錶框一樣透過滑鼠拖曳來選擇樹框中的多個選項?在樹狀框中,當 Multiselect 設定設為 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 是否足夠,因為它會在選擇之間選擇項目?