>>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
I cannot believe it was that easy. I guess it was just way, way too obvious.
Many Thanks
>
>cancel = .T.
>
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn