Noncontiguous selections in FastTable?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Noncontiguous selections in FastTable?

hernanmd

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

Reply | Threaded
Open this post in threaded view
|

Re: Noncontiguous selections in FastTable?

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 <[hidden email]>:

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


Reply | Threaded
Open this post in threaded view
|

Re: Noncontiguous selections in FastTable?

hernanmd
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 <[hidden email]>:
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 <[hidden email]>:

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