Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Web Browser Ole Control
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00853728
Message ID:
00854276
Views:
19
Hi Sergey,
Using VFP8 SP1. Base class is a container with the Web Browser control dropped on it. In the refresh of the browser is
NODEFAULT
in the resize of the container is
this.olecontrol1.top = 0
this.olecontrol1.left = 0
this.olecontrol1.width = this.Width
this.olecontrol1.Height = this.Height
If I drop that on a form, it doesn't appear. If I click where I know the control is, then it appears (must be something with the gotfocus). Does that offer any clues? Thanks Sergey,

jfh


>Hi John,
>
>What VFP version are you using? What other code do you have in the container and form?
>
>>Hello,
>>I created a class based on a container. Dropped the Web Browser OLE control on it, added some code to the init to resize the web browser to whatever size the container happens to be. That is all there is to it. If I subclass this and drop it on a form, it does not display. Visibility = .T. Also, if I resize the form, then it displays. Kinda at a loss here, anyone seen anything like this before? Thanks,
>>
>>jfh
>>
>>oh yeah, added the standard NODEFAULT to the refresh of the web browser as well.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform