Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MS Browser Control - get parent object
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
Miscellaneous
Thread ID:
01508069
Message ID:
01508385
Views:
45
Sergey, are you out there?

>I have a form where novice users can edit a company web page. I have created a "browser box" (my name) class that is simply the browser control within a standard container. Using the samples from a WestWind white paper (thanks Rick) explaining the HTMLDocumentEvent stuff I am now able to trap for a mouse click and right click but I would also like to be able get the parameters for what mouse button, mouse move, etc. I need to be able to replace the right click menu with my own and to call procedures in my code.
>
>Using your sample on loading the HTML from memory, etc. I can edit the HTML and combined with the HTMLDocumentEvent stuff I believe I can handle things like bolding text, creating links, etc.
>
>However, there can be any number of these "browser boxes" and I need to know which one the user clicked on. That is where I am currently stuck. I found that I can add the parent object as a property to the browser control but I need to be able to reference that on a right click so I can call my code with a reference to the current "box".
>
>
>
>>Can you provide more details on what you're trying to do?
>>
>>>So glad to hear from you! What event are you checking and how? There is no click event and when I tried HTMLDocumentEvents_onclick I got the above error. This is all new to me and I'm sure I'm doing it all wrong. I also need to know how to tell what mouse button was clicked and stuff like that.
Beer is proof that God loves man, and wants him to be happy. - Benjamin Franklin
John J. Henn
Previous
Reply
Map
View

Click here to load this message in the networking platform