In ViewXY I have the zoom settings as default (control is Y-only, Shift is X-only).
When you press either of the keys, i'd like the cursor icon to update to reflect that. However, the cursor update doesn't update until you move the mouse.
Is there any method or setting I can change to get the cursor to update immediately without the mousemove? I'd have to call it on shift\control keydown method.
Thanks!
updating the cursor when the control or shift key is pressed
Moderator: Queue Moderators
-
- Posts: 183
- Joined: Tue Mar 18, 2014 2:55 pm
-
- Posts: 555
- Joined: Mon Mar 14, 2016 9:22 am
Re: updating the cursor when the control or shift key is pre
You need to get Chart in focus. If you click on Chart once, cursor-icon will be updated without mouse movement. You could set focus, for example, in AfterRendering event handler:
Code: Select all
private void _chart_AfterRendering(object sender, AfterRenderingEventArgs e)
{
if(_chart.CanFocus)
{
_chart.Focus();
_chart.AfterRendering -= _chart_AfterRendering;
}
}