Select to view content in your preferred language

Custom Cursor for identify

2732
5
Jump to solution
03-20-2013 01:54 PM
MayJeff
Deactivated User
How to add a custom cursor for identify widget?  See attached identify cursor.  Thank you.
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
omega_cancer
Frequent Contributor
How to add a custom cursor for identify widget?  See attached identify cursor.  Thank you.



1. Create a .png cursor as you like:

2. Declare

[Embed(source="cursor.png")] private var customCur:Class; 



and attach it like this:

 CursorManager.setCursor(customCur,CursorManagerPriority.HIGH,-YourPNGWidth,-YourPNGHeight);



Hope that it will work.

View solution in original post

0 Kudos
5 Replies
omega_cancer
Frequent Contributor
How to add a custom cursor for identify widget?  See attached identify cursor.  Thank you.



1. Create a .png cursor as you like:

2. Declare

[Embed(source="cursor.png")] private var customCur:Class; 



and attach it like this:

 CursorManager.setCursor(customCur,CursorManagerPriority.HIGH,-YourPNGWidth,-YourPNGHeight);



Hope that it will work.
0 Kudos
GISDev1
Deactivated User
I agree with the above answer, furthermore, to turn off your cursor:

In the widgetClosedHandler, or in whatever function fires after a click if you'd like to de-activate the cursor after one map click, then fire this:

CursorManager.removeAllCursors();
0 Kudos
MayJeff
Deactivated User
[ATTACH=CONFIG]23762[/ATTACH]Thank you all for the help. I also create mouseOver and mouseOut function inside widget template so it can change identify cursor to hand or arrow when you mouse over different icon but I can't figure out how come the resize cursor won't work.  See the attached file.

Thanks again.
0 Kudos
omega_cancer
Frequent Contributor
[ATTACH=CONFIG]23762[/ATTACH]Thank you all for the help. I also create mouseOver and mouseOut function inside widget template so it can change identify cursor to hand or arrow when you mouse over different icon but I can't figure out how come the resize cursor won't work.  See the attached file.

Thanks again.



If you think that these answers were at all help then mark it as answer so that others can get benefit from it. After all we all are trying to create a good forum here and If you have other question post it.
Thanks
0 Kudos
MayJeff
Deactivated User
I found the solution for it.  Just use rollOver & rollOut instead of mouseOver & mouseOut.
0 Kudos