[mapguide-users] RE: Mouse cursor in Ajax viewer
Ivan Milicevic
Ivan.Milicevic at supranet.hr
Tue Mar 18 09:44:56 EDT 2008
Hello group,
I've attached cur files (icon files for cursors).
-----Original Message-----
From: mapguide-users-bounces at lists.osgeo.org
[mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of flakesns
Sent: Tuesday, September 18, 2007 10:35 AM
To: mapguide-users at lists.osgeo.org
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:
>
> 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)
call
> but no joy. Maybe a version thing.
>
> Keith
>
> -----Original Message-----
> From: mapguide-users-bounces at lists.osgeo.org
> [mailto:mapguide-users-bounces at lists.osgeo.org] On Behalf Of flakesns
> Sent: 18 September 2007 02:17
> To: mapguide-users at lists.osgeo.org
> 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 = "http://localhost/mapguide/stdicons/";
> 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:
>>
>> Hi,
>>
>> Is it possible to change the mouse cursor in the Ajax viewer to mimic
>> the behavior of the DWF viewer? If I select 'Zoom Rectangle' or
'Pan',
> etc.
>> the
>> cursor never changes from the arrow style.
>>
>> If this is not currently implemented, would it be possible to add
this
>
>> as an enhancement to a future release?
>>
>> -Kayne
>>
>> _______________________________________________
>> mapguide-users mailing list
>> mapguide-users at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>>
>>
>
> --
> View this message in context:
>
http://www.nabble.com/Mouse-cursor-in-Ajax-viewer-tf3891016s16610.html#a
> 12748237
> Sent from the MapGuide Users mailing list archive at Nabble.com.
>
> _______________________________________________
> mapguide-users mailing list
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
> This message has been scanned for viruses by MailControl - (see
> http://bluepages.wsatkins.co.uk/?6875772)
>
>
> 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 legally
binding.
>
> 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
> mapguide-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapguide-users
>
>
--
View this message in context:
http://www.nabble.com/Mouse-cursor-in-Ajax-viewer-tf3891016s16610.html#a
12752466
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
mapguide-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoomrect.cur
Type: application/octet-stream
Size: 3262 bytes
Desc: zoomrect.cur
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080318/b0944ea4/zoomrect.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pan.cur
Type: application/octet-stream
Size: 3262 bytes
Desc: pan.cur
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080318/b0944ea4/pan.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoomin.cur
Type: application/octet-stream
Size: 3262 bytes
Desc: zoomin.cur
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080318/b0944ea4/zoomin.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zoomout.cur
Type: application/octet-stream
Size: 3262 bytes
Desc: zoomout.cur
Url : http://lists.osgeo.org/pipermail/mapguide-users/attachments/20080318/b0944ea4/zoomout.obj
More information about the mapguide-users
mailing list