Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm new to Ultimate Grid (and relatively new to MFC). I have compiled the libraries and have a basic grid project up and running.

I have set it to display Excel-like focus and now want to be able to select a group of cells (say 3 in a column) and then extend the selection to copy the pattern established by the selected cells in a similar way to Excel continues the pattern.
Eg. I select 3 cells in a column, containing 1, 2, 3 respectively. If I extend the selection by 2 cells down I want to populate those cells with 1, 2. If I extend by 4 I want to populate them with 1, 2, 3, 1. I want to repeat the data, not extend the pattern as Excel does.

My problem is that I can't find any (obvious) methods which would allow me to detect when the mouse is over the small square in the bottom-right corner of the Excel Focus Rectangle so that I can change the cursor to indicate that, and to allow clicking the mouse to pick up that corner and extend the Focus Rectangle.

I have seen the Excel Demo and it doesn't seem to be able to allow the user to extend the Excel Focus Rectangle either, so I haven't been able to get clues from that.

Any help greatly appreciated.

Geoff King
Posted
Comments
nv3 13-Oct-13 23:10pm    
Geoff, I think your question would be much better posted on the Ultimate Grid project page, here on Code Project. There you will get the awareness of the folks that know this package in and out.
[no name] 13-Oct-13 23:14pm    
Thanks,

I'll re-post it there.

Geoff

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900