[Q] [Morphic] Multiple Selections in PluggableListMorph?
Joern.Eyrich at syngenio.de
Fri Apr 5 12:51:45 UTC 2002
Shift-Click is for *de*selection. I was stumped by this, too.
You can select multiple entries by clicking them individually or dragging over them.
Deselection is with shift-click or shift-drag.
Look in class ChangeList for an example of its usage (seems to be the only place in my 3.2g-4743 image).
Try for example "ChangeList browseRecent: 5000".
"Ken G. Brown" wrote:
> 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.
> 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