Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic How to change the mouse pointer when over the Java Applet diagram (Read 4014 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
How to change the mouse pointer when over the Java Applet diagram
Jan 27th, 2013 at 8:15pm
Print Post  
Hi,

I have a diagram rendered using the Java Applet that has no interaction other than being able to move the diagram around within the window.
This is accomplished by the user clicking and holding the left mouse button and then dragging. 
This is fine, but when the mouse pointer is simply an arrow, it's not intuitive to the user that they can do this.

Changing the mouse pointer to a hand (only while it's over the diagram) would be a better visual cue.

Any suggestions?

Thanks in advance.

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to change the mouse pointer when over the Java Applet diagram
Reply #1 - Jan 28th, 2013 at 9:11am
Print Post  
Hi,

Try this:

Code
Select All
function onAppletStarted()
{
	var applet = <%= diagramView.AppletElement %>;
	var view = applet.getDiagramView();
	view.setPointerCursor(view.getDrawLinkCursor() /* == Cursor.HAND_CURSOR */);
} 



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


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: How to change the mouse pointer when over the Java Applet diagram
Reply #2 - Jan 28th, 2013 at 2:50pm
Print Post  
Hi Stoyan,

Once again, just what I wanted.
Actually I changed it to getMoveCursor, since I think this works even better.  The hand would have been good had the index finger not been extended.

But you gave me the important piece - the approach.

Thanks a lot.

Jim
  
Back to top
 
IP Logged
 
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Re: How to change the mouse pointer when over the Java Applet diagram
Reply #3 - Jan 28th, 2013 at 3:20pm
Print Post  
Stoyan,

Me again.
Now that I have the mouse pointer working, I have one issue with it.
When I hover over the whitespace of the diagram, I get the cursor I want.  If I hover over a node, the cursor changes to the hand - that's fine.  But if I hover over an expand button, the cursor does not change - it remains the Move cursor (just like it is over whitespace).
Is there a way to change the cursor to a pointer when I hover over an expand button?

Thanks again

Jim
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: How to change the mouse pointer when over the Java Applet diagram
Reply #4 - Feb 1st, 2013 at 3:10pm
Print Post  
It's not possible at this time, the control is not detecting the +/- buttons at all until the mouse button is pressed.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint