Posted 25 October 2024, 10:20 am EST
I’m using c++ and have an application built over 15 years ago with this spread 8 grid.We have a new requirement to enable multiblock selects. The default of the grid is to not allow this.
I do the following:
SSSetBool(m_hWnd, SSB_RETAINSELBLOCK, TRUE);
SSSetBool(m_hWnd, SSB_ALLOWMULTIBLOCKS , TRUE );
When I select a single block, both SSGetMultiSelBlocks and SSGetSelectBlock will return the block.
When I hold down the Ctrl button and mouse select a second block, as soon as I press the left mouse button to select the second block, the first block is no longer highlighted.
I can not select a second block.
I thought that maybe we are intercepting the Ctrl key in a PreTranslateMessage and not passing it to the grid. This is not the case as we pass it to the grid. I proved this by trying Ctrl-space, which selects the current column.
Any help in getting this working would be appreciated.