1) How can I change the mouse cursor when the cursor hovers over a selection?

2) If I press the right mouse button, a context menu is displayed. How can I make that context menu different based on the position of the mouse cursor over selection or not?

Thank you