cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
BabyDoragon
Level II

Is it possible to select multiple options in a tree box by mouse dragging like listbox?

In the tree box, when the Multiselect setting is set to 1, it allows multiple selections of options in the tree box (as shown in the JSL Script). However, unlike the list box, in this case, multiple selections are made while holding down the Ctrl key. Is there a way to select multiple items like in a list box, not only by holding the Ctrl key but also by dragging the left mouse button to select multiple items?
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 ),

);
1 REPLY 1
jthi
Super User

Re: Is it possible to select multiple options in a tree box by mouse dragging like listbox?

Instead of using Ctrl, would using shift be enough as it will select items between the selections?

-Jarmo

Recommended Articles