[mapguide-users] Activate Hyperlink by double click
Mauricio Villablanca
mgvillablanca at yahoo.com
Sat Nov 15 02:57:48 EST 2008
I simply edited the file ajaxmappane.templ and added the code for Ctrl-click
to the function OnDblClick(e).
function OnDblClick(e) {
hidePopup(tbMenu)
hidePopup(infoMenu)
hidePopup(ctxMenu)
parent.ForwardMouseDown(document, e);
var x = e.clientX - mapPosX;
var y = e.clientY;
if(x < 0) {
if(safari && x > -5) {
moveType = RESIZING;
return false;
}
return false;
}
var processed = parent.ClickMap(x,y);
if (msie)
e.cancelBubble = true;
else
e.stopPropagation();
if (!processed) {
HideHyperlinkTip();
if(tool != 6) {
if(hlData.url != "")
ExecuteHyperlink(hlData.url);
Else {
hlData.curx = x; hlData.cury = y;
RequestHyperLinkData(++ hlData.reqId, hlData.curx,
hlData.cury, true);
}
}
}
//end of editing
}
Then I changed the tooltip: urlinfo = " Double- or Ctrl-click to open
link";
Thomas Grosser wrote:
>
> Dear list members,
>
> I´ve searched a lot but i didn´t found a the right solution: is it
> possible to activate a hyperlink in MGOS 2 without using CTRL + klick ?
> For example to activate it by double click ?
>
> Thanks !
>
> Thomas Grosser
> _______________________________________________
> 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/Activate-Hyperlink-by-double-click-tp18458503p20513259.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
More information about the mapguide-users
mailing list