Muhammad usman schrieb:

> hi,
>
> Well Holger thanks a lot for your kind advice ,  yet i have find 
> another way of making ur own cusomizeable menu having options 
> available that one wants ,
>
> <svg onload="makeNewMenu()" onmousedown="mousedown=true">
> <desc>
> <menu id='newMenu' xmlns="http://usm";>
>     <item action='ZoomIn'> Zoom In</item>
>     <item action='ZoomOut'> Zoom Out</item>
>    <item action='OriginalView'> Original View </item>
> </menu>
> <desc>
>
> <script>
> <![CDATA[
> function makeNewMenu()
> {
> var 
> newMenuRoot=parseXML(printNode(document.getElementById("newMenu")),contextMenu;
> contextMenu.replaceChild(newMenuRoot,contextMenu.firstChild);
> }
> ]]>
> </script>
>
> </svg>


Hi Usman
two things, be aware that this code is ASV only ( as the processing 
instruction i suggested ) so it does not work in Batik nor does it work 
in firefox.
and you should read the currentSupport document from adobe ! it says:
"It is stongly recommended to have an 'About' action in the context 
menu. Menus without an 'About' action may get ignored by Adobe SVG Viewer."

cheers
Holger

>
> the above code is working properly in IE and ASV3.0 , i havent yet 
> tested it in batik . the above code is apprehended from the examples 
> provide by  francis hemsher.
>
> regards,
>      Usman.
>
>
> Holger Will <[EMAIL PROTECTED]> wrote:
> Muhammad usman schrieb:
>
> > hi bart,
> >
> > can u tell me how to add a custom menu in ASV3 which does not include
> > the copy and paste functionality.
> > regards,
> > Usman
> >
> Hi Usman
> you dont need to hack the contex menue to achieve that, you can instead
> use a processingInstruction like this:
>
> |<?AdobeSVGViewer save="disable"?>
>
> |for more info , see:
> http://www.adobe.com/svg/indepth/pdfs/CurrentSupport.pdf
>
> hth
> Holger
>
>



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to