ReoGrid
ReoGrid copied to clipboard
Update HyperLinkCell.cs
I've made all the modifications based on the behavior of the Latest Excel under Windows: the cursor changes only when the mouse is over the text.
To achieve that:
- I've changed the name of the property from
IsPressedtoIsOverLink. - I've removed
OnStartEditbecause you can still edit the cell even if the mouse is over the link. - I've remove the event
OnMouseEnterand replaced them withOnMouseMove.OnMouseLeaveis still there. OnMouseMovemouse check if the mouse is over the text and changeIsOverLinkaccordingly and manage the cursor- For each events, the default behavior is kept. Example: Even if the mouse is down over the text, you can still move outside the cell and select a range
- In Excel, with the mouse down over the link, if you move the mouse before mouse up, the navigate process is stopped. Unfortunately, I couldn't reproduce since when the mouse is down,
OnMouseMoveisn't receiving any events. Not sure why. Same forOnMouseLeave, not sure it's useful.
@lamazze Thanks! Nice changes! Since it makes some behaviors doesn't compatible with the original hyperlink, I will make another change to implement your requirement.
Issue #309