Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Mouse pointer issues after changing to client side node and link clicked handlers (Read 2627 times)
jlj30
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 183
Joined: Sep 4th, 2011
Mouse pointer issues after changing to client side node and link clicked handlers
Aug 5th, 2013 at 3:06pm
Print Post  
Hi,

I have recently switched to using NodeClickedScript and LinkClickedScript rather than their server-side counterparts.

Since doing this, my mouse pointer does NOT change when I hover over a link or a shape.  Previously it changed to a hand with the index finger raised.

I would like this behavior back.
What do I need to do to re-enable this feature.

Thanks

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


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Mouse pointer issues after changing to client side node and link clicked handlers
Reply #1 - Aug 6th, 2013 at 6:28pm
Print Post  
Hi,

Browsers show a hand cursor to indicate they will follow a link, but the onclick attribute prevents that. You could add mouseover and mouseout handlers to change the current cursor from code instead:

Code
Select All
public void OnCreatingAreaElement(object sender, MindFusion.Diagramming.WebForms.CreatingAreaElementEventArgs e)
{
	e.Attributes["onmouseover"] = "document.body.style.cursor = 'pointer'";	// pointer == hand cursor
	e.Attributes["onmouseout"] = "document.body.style.cursor = 'default'";
} 



In theory, setting e.Attributes["style"] = "cursor: pointer" should work too, but that seems unsupported for area elements.

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: Mouse pointer issues after changing to client side node and link clicked handlers
Reply #2 - Aug 6th, 2013 at 6:42pm
Print Post  
Hi Stoyan,

Just what I needed.
Thanks

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