|
|
|
|
Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Bart Kampers
|
Jul 18, 2012 - 4:01 AM
|
Hello there,
I noticed something strange in the CExtGridWnd control. When I enable multiple row selection by adding the __EGBS_SFM_FULL_ROWS style I can expand the selection by holding shift and clicking a cell. When I enable multi-cell selected regions by adding the __EGBS_SFM_CELLS_HV style it is not possible to expand the selection this way.
Can I enable range expansion by shift+click in multi-cell mode?
Thanks in advance,
Bart.
|
|
Bart Kampers
|
Sep 6, 2012 - 2:14 AM
|
I sent you an example project. Maybe you would like to answer?
|
|
Bart Kampers
|
Jul 25, 2012 - 1:51 AM
|
If you wish I can send you an example project.
Initialization code:
grid.Create(this, CRect(10, 10, 500, 200));
grid.HoverEventsSet(true, true); grid.SiwModifyStyle(__EGBS_RESIZING_CELLS_OUTER_H | __EGBS_RESIZING_CELLS_INNER_H, 0, false); grid.BseModifyStyleEx(__EGBS_BSE_EX_DBLCLK_BEST_FIT_COLUMN_OUTER | __EGBS_BSE_EX_DBLCLK_BEST_FIT_COLUMN_MEASURE_INNER | __EGBS_BSE_EX_DBLCLK_BEST_FIT_COLUMN_MEASURE_OUTER, 0, false); grid.BseModifyStyle(__EGWS_BSE_SORT_COLUMNS | __EGWS_BSE_SORT_COLUMNS_ALLOW_MULTIPLE | __EGWS_BSE_BUTTONS_IN_FOCUSED_CELL, 0, false);
// !! When using next line shift+click does not expand the selection, shift+arrow does. grid.SiwModifyStyle(__ESIS_STH_PIXEL | __ESIS_STV_PIXEL | __EGBS_SFM_CELLS_HV | __EGBS_NO_HIDE_SELECTION | __EGBS_GRIDLINES | __EGBS_FIXED_SIZE_ROWS, 0, false);
// !! When using next line bpth shift+click and shift+arrow does expand the selection //grid.SiwModifyStyle(__ESIS_STH_PIXEL | __ESIS_STV_PIXEL | __EGBS_SFM_FULL_ROWS | __EGBS_NO_HIDE_SELECTION | __EGBS_GRIDLINES | __EGBS_FIXED_SIZE_ROWS, 0, false);
grid.DefaultRowHeightSet(50, false);
grid.OuterRowCountTopSet(1); grid.OuterColumnCountLeftSet(1); grid.RowInsert(0, 5); grid.ColumnInsert(0, 3);
|
|
Technical Support
|
Jul 20, 2012 - 4:22 AM
|
Dear Bart,
Both shift+ Arrow keys and shift+ mouse click perform modification of the last rectangular selection region. This works in all __EGBS_SFM_*** selection models. Please show us the entire grid’s initialization source code.
|
|