DWF Viewer

DWF Viewer

Reply
Member
sims_jim
Posts: 4
Registered: ‎11-19-2010
Message 1 of 3 (2,162 Views)

removing horizontal bar, removing ability to move drawing

2162 Views, 2 Replies
11-19-2010 03:27 PM

We use DwfViewerSetup.cab internally to put silicon wafer drawings on a web page. We used to use whip.cab for the same purpose. I'm just trying to upgrade our whip.cab references to DwfViewerSetup.cab. I've just about figured out how to turn off all the additional DwfViewerSetup.cab functionality (toolbars, etc.). I still see an annoying horizontal bar at the top of each drawing. Anyone know how to disable that? Also, when the user's mouse hovers over the drawing, they can still drag the drawing around within its little area. Anyone know how to disable that? I'll paste in a screenshot of what I've got so far. Thanks in advance for any and all help.

 

 

2023i14D369F86D6D7DE7

Employee
herbert.he
Posts: 338
Registered: ‎03-05-2008
Message 2 of 3 (2,110 Views)

Re: removing horizontal bar, removing ability to move drawing

11-24-2010 07:30 PM in reply to: sims_jim

Thank you for your questions.

 

1.  You can remove horizontal canvas bar via adding following code to your script.

      <param name="CanvasToolbarEnabled"  value= false>

 

    By the way, this only valid for Autodesk Design Review 2010 or later. You can get the latest verion from here for free.

 

2. For removing ability to move drawing, you can handle all mouse events to override their default behaviors following the code:

  <script type="text/javascript" FOR="ADViewer" EVENT="OnLButtonDown(nX, nY, pHandled)">
    pHandled.State = true; 

    // do nothing... 
  </script>

  <script type="text/javascript" FOR="ADViewer" EVENT="OnRButtonDown(nX, nY, pHandled)">
    pHandled.State = true; 

    // do nothing... 
  </script>

  ...

 

Please let me know if I can be of any further help.

 

 

 



Herbert He
SW Engineer
PSEB-GE- ACRD PSEB
Autodesk, Inc.
Member
sims_jim
Posts: 4
Registered: ‎11-19-2010
Message 3 of 3 (2,068 Views)

Re: removing horizontal bar, removing ability to move drawing

11-29-2010 09:38 AM in reply to: sims_jim

Hi Herbert,

 

Thanks for your help. I really appreciate it. What should the codebase parameter of object tag look like in order to fetch the right version of the dwfviewer? Here's what it looks like now: codebase="http://www.autodesk.com/global/dwfviewer/installer/DwfViewerSetup.cab#version=8,1,0,87"

 

Jim

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.