Although the code is nice and concise,
doesn't this mean that this code is evaluated every time the mouse goes down
on any layer, and all bubbled too layers, for any reason, instead of only
for a layer that's about to be dragged ?

If I'm not mistaken the current code is :
if (is.ie) lyr.doc.body.onselectstart = null;
is the unwanted textselecting effect IE5+ only?

Richard

----- Original Message -----
From: "Michael Pemberton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 25, 2001 2:13 PM
Subject: [Dynapi-Dev] Context Menus and Text Selection in IE5


> I've combined the different methods of stopping IE from displaying
> context menus and selecting text into the following lines of code.  They
> should be placed just before the "return evt.browserReturn;" line.
>
>  if (is.ie5) {
>     if (evt.type=='mouseup' && evt.button==3)
> dyndoc.doc.oncontextmenu=(evt.browserReturn) ? null : function() {return
> false};
>     else if (evt.type=='mousedown')
> dyndoc.doc.body.onselectstart=(evt.browserReturn) ? null : function()
> {return false};
>  };
>
> This means that there is now no need to repeat the code in all the
> different widgets.  Just cancel the browser event and the above code
> will do the rest.
> --
> Michael Pemberton
> [EMAIL PROTECTED]
> ICQ: 12107010
>
>
>
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> ____________________________________________________________
> Get your domain name and domain-based e-mail from
> Namezero.com. New!  Namezero Plus domains now available.
> Find out more at: http://www.namezero.com
>


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to