DWF Viewer

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

removing horizontal bar, removing ability to move drawing

2014 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
Posts: 338
Registered: ‎03-05-2008
Message 2 of 3 (1,962 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 (1,920 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Welcome to the new Autodesk Community!
If this is your first visit, click here to get started and make the most of the Community. Let us know what you think of the new experience in the Community Feedback Forum.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community