<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I have it working, but only in IE. <br>
The cursors has to be "cursor" files, not "gif" or "ico" files.<br>
You might need a special tool to create them.<br>
<br>
It seems that Firefox has other requirements to the cursor.<br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Campbell, Keith A skrev:
<blockquote
cite="mid:2D5D8AC034A54041A6B2AE1C9148CC3106E71F0A@SGBBMA2102.wsatkins.com"
type="cite">
<pre wrap="">Hmm, still not working. Might need to fiddle with it a bit.
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] On Behalf Of flakesns
Sent: 18 September 2007 09:35
To: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
Subject: [mapguide-users] RE: Mouse cursor in Ajax viewer
oh i'm sorry.. i'm not sure about the version.
i forgot to put this step:
-> U need to create your own *.cur image.
->Then store the *.cur in stdicons folder.
Mine works well on MG1.2RC2.
Keith Campbell wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks for posting this.
However, I can't get it to work in 1.1.0. I've added semicolons at the
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<pre wrap="">line ends in the case statements and also in the changeIcon(action)
call but no joy. Maybe a version thing.
Keith
-----Original Message-----
From: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users-bounces@lists.osgeo.org">mapguide-users-bounces@lists.osgeo.org</a>
[<a class="moz-txt-link-freetext" href="mailto:mapguide-users-bounces@lists.osgeo.org">mailto:mapguide-users-bounces@lists.osgeo.org</a>] On Behalf Of flakesns
Sent: 18 September 2007 02:17
To: <a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
Subject: Re: [mapguide-users] Mouse cursor in Ajax viewer
Hi, i'm using MG 1.2RC in windows XP.
My solution based on Jackie Ng great code.
Open toolbar.templ in viewerfiles folder.
Add this code:
function changeIcon(action){
        var cururl = <a class="moz-txt-link-rfc2396E" href="http://localhost/mapguide/stdicons/">"http://localhost/mapguide/stdicons/"</a>;
        var map = parent.mapFrame.document.getElementById("map");
        switch(action)
        {
                case 1:
                        map.style.cursor = cururl + "icon_pan.cur"
                        break;
                case 7:
                        map.style.cursor = cururl + "icon_zoomin.cur"
                        break;
                case 8:
                        map.style.cursor = cururl + "icon_zoomout.cur"
                        break;
                case 9:
                        map.style.cursor = cururl + "icon_zoomrect.cur"
                        break;
                default:
                        map.style.cursor = 'default';
                        break;
        }
        
}
Then find OnCommandExecuted,
function OnCommandExecuted(action)
{
        changeIcon(action)
.....
.....
.....
}
Kayne M. Morvant wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi,
Is it possible to change the mouse cursor in the Ajax viewer to mimic
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">the behavior of the DWF viewer? If I select 'Zoom Rectangle' or
'Pan',
</pre>
</blockquote>
<pre wrap="">etc.
</pre>
<blockquote type="cite">
<pre wrap="">the
cursor never changes from the arrow style.
If this is not currently implemented, would it be possible to add
this
</pre>
</blockquote>
<blockquote type="cite">
<pre wrap="">as an enhancement to a future release?
-Kayne
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap="">--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/Mouse-cursor-in-Ajax-viewer-tf3891016s16610.html">http://www.nabble.com/Mouse-cursor-in-Ajax-viewer-tf3891016s16610.html</a>
#a
12748237
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
This message has been scanned for viruses by MailControl - (see
<a class="moz-txt-link-freetext" href="http://bluepages.wsatkins.co.uk/?6875772">http://bluepages.wsatkins.co.uk/?6875772</a>)
This email and any attached files are confidential and copyright
protected. If you are not the addressee, any dissemination of this
communication is strictly prohibited. Unless otherwise expressly
agreed in writing, nothing stated in this communication shall be
</pre>
</blockquote>
<pre wrap=""><!---->legally binding.
</pre>
<blockquote type="cite">
<pre wrap="">The ultimate parent company of the Atkins Group is WS Atkins plc.
Registered in England No. 1885586. Registered Office Woodcote Grove,
Ashley Road, Epsom, Surrey KT18 5BW.
Consider the environment. Please don't print this e-mail unless you
really need to.
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
<pre wrap=""><!---->
--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/Mouse-cursor-in-Ajax-viewer-tf3891016s16610.html#a">http://www.nabble.com/Mouse-cursor-in-Ajax-viewer-tf3891016s16610.html#a</a>
12752466
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
</pre>
</blockquote>
</body>
</html>