DWF Viewer (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can i do for disable the menu (rigth click mouse) ?

9 REPLIES 9
Reply
Message 1 of 10
Anonymous
438 Views, 9 Replies

How can i do for disable the menu (rigth click mouse) ?

somebody, helpme please, i need disable the menu, when use whip, i disable it usign the but with AEV cant find it, and its important disable it. HEEEELP!!
9 REPLIES 9
Message 2 of 10
Anonymous
in reply to: Anonymous

Here is a sample code:

 

Private Sub UserForm_Click()
   
Dim pv As IAdPageViewer
    Set pv =
CAdViewer1.Viewer
   
   
pv.UserInterfaceEnabled = False
End Sub

 

Private Sub
UserForm_Initialize()
    CAdViewer1.SourcePath =
"C:\tmp.dwf"
End Sub

 

NOTE: You need to reference AdPageView.dll
too

 

cheers,

Thilak

 

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
somebody,
helpme please, i need disable the menu, when use whip, i disable it usign the
but with AEV cant find it, and its
important disable it. HEEEELP!!
Message 3 of 10
Anonymous
in reply to: Anonymous

Thanks, but i have a little question???

Do you know if this code only works in vscript or either in visual basic.
Message 4 of 10
Anonymous
in reply to: Anonymous

It works in all languages that
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">work
with COM:
VB, VB script,
Javascript, C#, C++, J#, etc.


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Thanks,
but i have a little question???

Do you know if this code only works in vscript or either in visual
basic.

Message 5 of 10
Anonymous
in reply to: Anonymous

I'll try to do that in vbscript, but it doesnt work, i write into my code this:

Set pv = cartography.Viewer
pv.UserInterfaceEnabled = False

the another way to try to do is:

http://mysite.com?a.dwf?NotifyMissingFonts=false&userinterfaceenabled=false

I´m wrong or it really doesnt work. somebody knows?????
Message 6 of 10
Anonymous
in reply to: Anonymous

Yes, using URL params does work and is a
good solution.

 

You can also use object params

<object classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"

  id="AdView"

  width="450"

  height="300"

  UserInterfaceEnabled="false">

 

Or you can use VB Script

    
face="Times New Roman" size=3>AdView.Viewer.UserInterfaceEnabled =
false

 

Or any other
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">language
other
that talks COM.

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I'll
try to do that in vbscript, but it doesnt work, i write into my code this:

Set pv = cartography.Viewer

    pv.UserInterfaceEnabled = False

the another way to try to do is:


href="http://mysite.com?a.dwf?NotifyMissingFonts=false&userinterfaceenabled=false">http://mysite....


I´m wrong or it really doesnt work. somebody
knows?????

Message 7 of 10
Anonymous
in reply to: Anonymous

Yes, using URL params does work and is a
good solution.

 

You can also use object params

<object classid="clsid:A662DA7E-CCB7-4743-B71A-D817F6D575DF"

  id="AdView"

  width="450"

  height="300"

  UserInterfaceEnabled="false">

 

Or you can use VB Script

    
face="Times New Roman" size=3>AdView.Viewer.UserInterfaceEnabled =
false

 

Or any other
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">language
other
that talks COM.

 


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I'll
try to do that in vbscript, but it doesnt work, i write into my code this:

Set pv = cartography.Viewer

    pv.UserInterfaceEnabled = False

the another way to try to do is:


href="http://mysite.com?a.dwf?NotifyMissingFonts=false&userinterfaceenabled=false">http://mysite....


I´m wrong or it really doesnt work. somebody
knows?????

Message 8 of 10
Anonymous
in reply to: Anonymous

Thanks Ben, i made that, but doesnt work, i hide the toolbar too, you think this is making throubles.
Message 9 of 10
Anonymous
in reply to: Anonymous



face="Times New Roman">The toolbar should have no effect on enabling and
disabling the right click menu. Are you using version 3.1.0.78?


 



style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">Thanks
Ben, i made that, but doesnt work, i hide the toolbar too, you think this is
making throubles.
Message 10 of 10
Anonymous
in reply to: Anonymous

Thank u, really u saved my live, it was the real problem, and finally work. Thanks again.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report