Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Using custom PointerCursor, but don't want it when mouse over scroll bars (Read 2402 times)
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Using custom PointerCursor, but don't want it when mouse over scroll bars
Nov 3rd, 2014 at 4:34am
Print Post  
In my floor plan programs I use custom cursors to show the user which mode he is in (wall-drawing, furniture creation, etc.) So the cursor shows a tiny bit of wall or a desk or table as the user moves the cursor around in the diagram. These cursors are set via diagramView.PointerCursor = xxx.cur.

This works fine, except that when there are scroll bars visible, and the user tries to scroll using the mouse, the mouse cursor is still showing the custom cursor when the user moves the mouse over the scroll bar. Scrolling does work, but it looks very confusing.

Do you have any suggestion for how to get the standard Windows pointer cursor while the mouse is over a scroll bar?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Using custom PointerCursor, but don't want it when mouse over scroll bars
Reply #1 - Nov 3rd, 2014 at 8:54am
Print Post  
This seems to work:

Code
Select All
diagramView.PointerCursor = Cursors.IBeam;
diagramView.HScrollBar.Cursor = Cursors.Default;
diagramView.VScrollBar.Cursor = Cursors.Default; 



I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Rennie
Full Member
***
Offline


I Love MindFusion!

Posts: 108
Location: Copenhagen, Denmark
Joined: Jul 17th, 2012
Re: Using custom PointerCursor, but don't want it when mouse over scroll bars
Reply #2 - Nov 3rd, 2014 at 3:34pm
Print Post  
Great, thank you very much.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint