Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I use VB activeX code in VFP 9?
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01519230
Message ID:
01519238
Views:
88
This message has been marked as the solution to the initial question of the thread.
>Help,
>I found a wonderful ActiveX HTML editor with an open API: nBit. Developer's license is 74.95 US $.
>
>I am trying to cancel the default action of the right click menu but the sample code to do so is in VB and I can't figure out how to make it work in VFP and the author has no VFP samples or knowledge. Do I need to subclass (?) the event? But how would I do that with a VFP ActiveX control?
>
>Sample VB code from the author:
>Private Sub HTMLed1_MenuClick(MenuItem As String, Cancel As Boolean)
>
>    MsgBox "Menu Clicked : " & MenuItem
>    Cancel = True
>    
>End Sub
>
>Contents of the event I think needs to be altered:
>*** ActiveX Control Event *** MenuClick
>LPARAMETERS menuitem, cancel
>
>Any ideas would be greatly appreciated.

Edit the MenuClick event and set cancel to .T., ex;
*** ActiveX Control Event *** MenuClick
LPARAMETERS menuitem, cancel

cancel = .T.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform