<!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">
Thanks for sharing.<br>
I have set up the info along with the cursor files at the MapGuide code
samples:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/wiki/CodeSamples">http://trac.osgeo.org/mapguide/wiki/CodeSamples</a><br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
Ivan Milicevic skrev:
<blockquote cite="mid:9CAB6B340CCF9E44BE4ACFCF56E67B070EEC74@supranet"
type="cite">
<pre wrap="">Hello group,
I've attached cur files (icon files for cursors).
-----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: Tuesday, September 18, 2007 10:35 AM
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
line ends in the case statements and also in the changeIcon(action)
</pre>
</blockquote>
<pre wrap=""><!---->call
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->'Pan',
</pre>
<blockquote type="cite">
<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
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->this
</pre>
<blockquote type="cite">
<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:
</pre>
</blockquote>
<pre wrap=""><!----><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>
</pre>
<blockquote type="cite">
<pre wrap="">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
</pre>
</blockquote>
<pre wrap=""><!---->agreed in
</pre>
<blockquote type="cite">
<pre wrap="">writing, nothing stated in this communication shall be legally
</pre>
</blockquote>
<pre wrap=""><!---->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
</pre>
</blockquote>
<pre wrap=""><!---->really
</pre>
<blockquote type="cite">
<pre wrap="">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=""><!---->
</pre>
<pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>