Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Cut, Copy, Paste methods
I have turned off the EditContextMenu property, and coded the context menu right-click for Cut, Copy, Paste, plus some specific other ones.
I was finding that the functions felt clunky, ie not immediately happening.
I then realised it only refreshed the control when I moved the mouse.
So, actioning a Cut message did nothing until I moved.
I then fired the UpdateCellEdit method, and it was all OK, but then the cell was not in edit mode.
I then added the EditCell event to keep the cell in edit mode, and its better, but then the cursor position changes.
Is there any solution that will make the Cut/Paste etc events fire and refresh and remain where the cursor is.
Thanks
Colin
I was finding that the functions felt clunky, ie not immediately happening.
I then realised it only refreshed the control when I moved the mouse.
So, actioning a Cut message did nothing until I moved.
I then fired the UpdateCellEdit method, and it was all OK, but then the cell was not in edit mode.
I then added the EditCell event to keep the cell in edit mode, and its better, but then the cursor position changes.
Is there any solution that will make the Cut/Paste etc events fire and refresh and remain where the cursor is.
Thanks
Colin
Comments
Odd. I'll have to take a look tomorrow.
The Code I Emailed you just recently was also the same causing this issue.
Try adding several words to the cell, select one and then right-click and select Cut, but don't move the mouse when doing this. You should be able to replicate.
This is using the controls built in Cut/Copy/Paste, and code supplied has this so you can check.
Eg Call Send_Message(OLE_DESCTABLE,"OLE.Cut",SelPos)
Colin