x
ActiveReportsJS v5.2 is Here! Check out our newest update. ActiveReportsJS v5.2 is Here! ARJS 5.2 is Here!

SSB_ALLOWMULTIBLOCKS not working for me to select multiple blocks with mouse

Posted by: gordon.proctor on 25 October 2024, 10:20 am EST

  • 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.

  • Posted 31 October 2024, 4:32 am EST

    I’ve discovered my problem. We were calling SSSetActiveCell on the Leave cell message, after a left mouse click, which resets the blocks selected.

  • Posted 31 October 2024, 5:15 am EST

    Although I can now see multiple blocks selected in the grid, I only get one block returned in SSGetMultiSelBlocks. Using Spread 8.0.22

  • Posted 31 October 2024, 6:59 am EST

    Correction, I get all blocks except the last block highlighted.

  • Posted 31 October 2024, 9:36 pm EST

    Add debugging statements to track the selection state. For example, log the current selection before and after a mouse click to see if the selection is indeed being cleared. This can help pinpoint where the logic is going awry.

  • Posted 12 December 2024, 10:41 pm EST

    I couldn’t get it to work. How do you fix this? slope

  • Posted 16 December 2024, 10:00 am EST

    I got this working by calling SSGetMultiSelBlocks and storing the blocks. This has all but the last selected. Then I call SSGetSelectBlock and add that. Now I have all selected blocks.

  • Posted 25 January 2025, 4:50 am EST

    Special themed levels Block Blast introduce unique obstacles, such as locked blocks or rotating grids, requiring players to think outside the box.

  • Posted 13 February 2025, 4:22 pm EST

    Overall,

    motox3m

    is all about having fun, enjoying the ride, and experiencing the thrill of motorcycle racing!

  • Posted 23 February 2025, 3:52 am EST

    It sounds like a frustrating issue! Have you checked if any other settings or software conflicts might be overriding SSB_ALLOWMULTIBLOCKS? Also, ensuring you’re using the correct version and checking for any required updates could help. Hope you get it resolved soon! geometrylite.cc game

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels