Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Control Question
Message
From
10/11/2005 08:39:25
 
 
To
10/11/2005 02:29:38
Aaron K. Y. Chu
Health & Care Co. Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01065841
Message ID:
01067125
Views:
30
Hi !
&& This Code Will avoid selecting text with mouse, Dragging and the context menu
lcBloqRclick = '<body oncontextmenu="return false" ondragstart="return false" ' + ;
      'onselectstart="return false"> <\BODY>'

&& This code Just disables the context menu
lcBloqRclick = '<body oncontextmenu="return false"> <\BODY>'

lcNewHTML = myTable.infohtml + lcBloqRClick
STRTOFILE(lcNewHTML,"c:\temp\preview.htm")
Thisform.oWebBrowser.Navigate2("c:\temp\preview.htm")
For a correct HTML code, you should add the above code in the BODY TAG. But you can try doing this simple way. Here it works without problems.

Regards

Cesar
Previous
Reply
Map
View

Click here to load this message in the networking platform