Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Help with custom Cursors (Read 2446 times)
Anthony Silva
Guest


Help with custom Cursors
Jun 29th, 2006 at 4:17pm
Print Post  
I'm trying to do a basic panning implementation a la acrobat reader where you click to grab and then drag to pan around in the document. I haven't started the panning code, but I don't anticipate any problems based on the API docs.

However, I AM having a problem with setting the mouse cursor to something other than the standard pointer. I have a MouseMove handler that I'm setting the cursor to my custom cursor every tick if the mouse button is down, but it seems to be getting overwritten by FlowChart.NET.

I read about the CustomBehavior stuff, but I'm a little unclear about how to create my own and how does it affect the standard one that I select in the forms designer. Basically, I would just want to implement the SetMouseCursor function and leave the others alone, but it looks like I can't.

Or maybe there's an easier way entirely...any help would be greatly appreciated!

Thanks,
Anthony
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Help with custom Cursors
Reply #1 - Jun 29th, 2006 at 4:51pm
Print Post  
Panning is already supported, but you must hold the ALT key down while dragging to pan around. In the ActiveX version there is a pan- Behavior which lets you pan without usnig ALT, we can port that to FlowChart.NET too in a few days.

Stoyan
  
Back to top
 
IP Logged
 
Anthony Silva
Guest


Re: Help with custom Cursors
Reply #2 - Jun 29th, 2006 at 6:22pm
Print Post  
>> "Panning is already supported..."
Good to know.  Smiley However, I'm going to continue coding my custom panning because I want to pan with the middle mouse button (similar to IE and some other programs). If panning capability is customizable in the future that'd be great, tho, too.

I've found a way around the cursor issue as well, I just temporary set CurPointer to the new cursor and then set it to Cursors.Default when the button is released. Under the hood, it's not exactly what I want, but from the user's perspective, you can't tell the difference.  Cheesy
  
Back to top
 
IP Logged
 
Anthony Silva
Guest


Re: Help with custom Cursors
Reply #3 - Jun 29th, 2006 at 8:02pm
Print Post  
Sorry all - I just realized I posted this in the FlowChartX forum. It was intended for the .NET'ers. Wink
  
Back to top
 
IP Logged
 
Forum Admin
YaBB Administrator
*****
Offline


Rock and Roll

Posts: 712
Joined: Apr 6th, 2003
Re: Help with custom Cursors
Reply #4 - Jun 30th, 2006 at 5:42am
Print Post  
* moved from FlowChartX/Discussion *
  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Help with custom Cursors
Reply #5 - Jun 30th, 2006 at 5:54am
Print Post  
We are going to add to the next version a property that maps the middle button to panning, and possibly other functions. But feel free to implement your own panning if you want  Wink

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint