Posted 6 June 2018, 3:52 am EST
Hello,
I’m in the process of migrating a VB 6.0 fpSpread application to VB 2017 GCSpread.NET WPF. The old application uses _BlockSelected, _MouseUp and _RightClick event handlers to perform different function on a cell or a selection of cells. I first implemented a _MouseUp and a _MouseRightButtonDown event handlers but was not able to get the selected cell row and column information. I then tried _CellClick and while the handler provides me with the selected cell row and column information it only works for left click events. Right click events are ignored. Here is the basic functionality that I’m trying to implement:
- _RightClick. When the user right clicks on a cell the application adds an “X” to the cell where the right click occurred.
- _MouseUp. When the user releases the mouse button the application performs the following:
a. If it is the right button the handler exits since the logic was handled by the _RightClick event.
b. If a range of cells is selected (left click and drag the mouse across selecting a group of cells) the handler exits since the logic is performed by the _BlocksSelected handler.
c. If it is the left button the application then displays a color coded “X” on the cell. - _BlockSelection. The application, upon releasing the left mouse button add color coded “X” in all the selected cells.
Can you help me with this?
Thanks,
Luis