[Q] [Morphic] Multiple Selections in PluggableListMorph?
Ken G. Brown
kbrown at tnc.ab.ca
Fri Apr 5 12:20:13 UTC 2002
I don't quite understand how to select and highlight more than one
item ie, extend the original selection.. When I tried it, shift-click
selecting a second item did not extend the highlighting so I did not
get any further. If in fact more than one item can be selected, that
is what I need.
Thx.
Ken
At 22:04 -0800 on 2002/04/04, Ned Konz is rumored to have written:
>On Thursday 04 April 2002 04:43 pm, Ken Brown wrote:
>> It doesn't seem to do what I'm looking for which would be to highlight two
>> lines in the upper left pane, and have a corresponding selection range
>> index available for its list array. Basically I'm wanting to have two lists
>> side by side, in which I can select more than one line at a time then use a
>> button click to move the selected items to the other list. Any suggestions?
>> Thx
>> Ken
>
>PluggableListMorphOfMany responds to listSelectionAt: and listSelectionAt:put:
>which respond with Booleans saying whether the given item is selected or not.
>
>So you just iterate through the list indices, selecting the ones for which
>listSelectionAt: returns true.
>
>Does this do what you need, or do you have other requirements?
>
>--
>Ned Konz
>currently: Stanwood, WA
>email: ned at bike-nomad.com
>homepage: http://bike-nomad.com
More information about the Squeak-dev
mailing list
|