Re: [Pharo-users] Noncontiguous selections in FastTable?

2017-05-21 Thread Hernán Morales Durand
Thanks Denis, it worked although I had to Alt+right-button which is weird
in Windows which commonly uses Ctrl+left button

Just a note for Pharo 5 users this method raises MNU

FTTableMorph class>>defaultBackgroundColor
^ Smalltalk ui theme listBackgroundColor

and could be replaced with the previous version:

FTTableMorph class>>defaultBackgroundColor
^ Smalltalk ui theme backgroundColor



2017-05-21 10:57 GMT-03:00 Denis Kudriashov :

> I fixed it in Pharo 6. Look at issue 19277
> 
> .
> Maybe you can just load updated packages for FastTable to fix your problem.
>
> 2017-05-20 22:41 GMT+02:00 Hernán Morales Durand  >:
>
>>
>> Any way to get noncontiguous selection working in FTTableMorph in Pharo 5?
>>
>> In Windows I cannot get two non-consecutive items to be selected.
>> Ctrl key causes menu to appear.
>> Shift key only allows consecutive items.
>>
>> See for example this FastTable:
>>
>> | ds |
>>
>> ds := FTTreeDataSource
>> roots: (1 to: 1000)
>> children: [ :data :item |
>> item depth even
>> ifTrue: [ 1 to: data / 2 ]
>> ifFalse: [ 1 to: data - 1 ] ].
>> FTTableMorph new
>> extent: 200 @ 400;
>> dataSource: ds;
>> allowDeselection;
>> beMultipleSelection;
>> secondarySelectionColor: Color tan;
>> openInWindow.
>>
>> Any help will be appreciated.
>> Cheers,
>>
>> Hernán
>>
>>
>


Re: [Pharo-users] Noncontiguous selections in FastTable?

2017-05-21 Thread Denis Kudriashov
I fixed it in Pharo 6. Look at issue 19277

.
Maybe you can just load updated packages for FastTable to fix your problem.

2017-05-20 22:41 GMT+02:00 Hernán Morales Durand :

>
> Any way to get noncontiguous selection working in FTTableMorph in Pharo 5?
>
> In Windows I cannot get two non-consecutive items to be selected.
> Ctrl key causes menu to appear.
> Shift key only allows consecutive items.
>
> See for example this FastTable:
>
> | ds |
>
> ds := FTTreeDataSource
> roots: (1 to: 1000)
> children: [ :data :item |
> item depth even
> ifTrue: [ 1 to: data / 2 ]
> ifFalse: [ 1 to: data - 1 ] ].
> FTTableMorph new
> extent: 200 @ 400;
> dataSource: ds;
> allowDeselection;
> beMultipleSelection;
> secondarySelectionColor: Color tan;
> openInWindow.
>
> Any help will be appreciated.
> Cheers,
>
> Hernán
>
>