[Grid] cellSelection and rowSelection [message #63172] |
Tue, 28 April 2009 20:03 |
|
Hi,
i'd like to have both:
1. the selected rows should be rendered how it is done when
cellSelectionEnabled is disabled (in my case blue background of the
selected row - macos)
2. the selected cell should be renderd as if cellSelectionEnabled is set
to true.
In other cases i used the FocusCellOwnerDrawHighlighter which couldn't not
be used here, right?
Could you please point me to the right direction?
Cheers,
Thomas E.-E.
|
|
|
|
Re: [Grid] cellSelection and rowSelection [message #63229 is a reply to message #63203] |
Wed, 29 April 2009 09:40 |
|
> yes this is right - this is special to SWT/JFace and won't (ever) work
> in Grid/Nebula.
what a pitty ...
> But I thought our special internal classes ensure that the cell
> selection it restored as needed. I'm not 100% sure what you are aiming at.
i am aiming at giving the user (visual) support which row (and ideally
which column - like crosslines) he is traversing/editing at the moment.
Hence our table is very broad and deep one could loose orientation very
quickly. Does this sound reasonable?
Cheers,
Thomas E.-E.
|
|
|
|
Re: [Grid] cellSelection and rowSelection [message #63301 is a reply to message #63253] |
Wed, 29 April 2009 16:04 |
|
Hi,
> So why don't turn on cell-selection in the grid? JFace has to emulate
> this concept whereas CellSelection is "natively" implemented in the Grid
> simply by calling setCellSelectionEnabled(true) - or do I don't get your
> use case?
that's what i did. But when i switch setCellSelectionEnabled on, the
selected cell is marked as focused, which is fine. But what i miss in that
case is the marked row (blue background). Ideally i'd like to mark the
corresponding column as well (like crosslines).
I'd like to have "the best out of two worlds" ...
Cheers,
Thomas E.-E.
|
|
|
|
|
|
|
|
|
|
Re: [Grid] cellSelection and rowSelection [message #594630 is a reply to message #63203] |
Wed, 29 April 2009 09:40 |
|
> yes this is right - this is special to SWT/JFace and won't (ever) work
> in Grid/Nebula.
what a pitty ...
> But I thought our special internal classes ensure that the cell
> selection it restored as needed. I'm not 100% sure what you are aiming at.
i am aiming at giving the user (visual) support which row (and ideally
which column - like crosslines) he is traversing/editing at the moment.
Hence our table is very broad and deep one could loose orientation very
quickly. Does this sound reasonable?
Cheers,
Thomas E.-E.
|
|
|
|
Re: [Grid] cellSelection and rowSelection [message #594657 is a reply to message #63253] |
Wed, 29 April 2009 16:04 |
|
Hi,
> So why don't turn on cell-selection in the grid? JFace has to emulate
> this concept whereas CellSelection is "natively" implemented in the Grid
> simply by calling setCellSelectionEnabled(true) - or do I don't get your
> use case?
that's what i did. But when i switch setCellSelectionEnabled on, the
selected cell is marked as focused, which is fine. But what i miss in that
case is the marked row (blue background). Ideally i'd like to mark the
corresponding column as well (like crosslines).
I'd like to have "the best out of two worlds" ...
Cheers,
Thomas E.-E.
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05363 seconds