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

Reply via email to