Comment #6 on issue 894 by benjamin...@gmail.com: Roassal revised ROSelection and example http://code.google.com/p/moose-technology/issues/detail?id=894
Can this be reopened? I agree that it was fixed per successful integration of cs and st files I provided, but I would like to expand the scope to address points (1.) and (2.) above.
First regarding point (2.), the following script demonstrates multiple selection using attached RoassalMorphic-BenComan.81.mcz & Roassal-BenComan.387.mcz (I wasn't sure if you also needed the intermediate mczs so I included them also. One auxillary thing that slipped is the 'position' I added to ROElement>>printOn: which you may want to revert.) --------- activeSelection := ROSelection new onInclusion: [ :element | ROHighlightElement on: element color: Color red ]; onExclusion: [ :element | ROUnhighlightElement on: element ]. statusBar := (ROElement on: activeSelection) + (ROLabel text: [ :el | el model asString ]) + ROBox white. view stack add: statusBar. statusBar translateTo: 0 @ 480.
view shape label. view interaction on: ROMouseLeftClick do: [ :ann | ann shiftKeyPressed ifFalse: [ activeSelection clear ]. activeSelection add: ann element. ]. view nodes: #(1 2 3 4 5). view gridLayout. -------------
Regarding point (1.) I haven't a clue. It would really good if someone could assist with that to complete ROSelection example.
Sorry no tests yet, but I updated the ROExample.
Attachments: RoassalMorphic-BenComan.81.mcz 110 KB Roassal-BenComan.387.mcz 272 KB Roassal-BenComan.386.mcz 272 KB Roassal-BenComan.385.mcz 271 KB Roassal-BenComan.384.mcz 271 KB