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:
00854318
Views:
20
Sergey,
Check this out. Created a method on the base class container called showit() and am calling it from the init. code in the showit() method:
this.SetFocus()
FOR EACH oControl IN this.Parent.Controls
	IF oControl.tabindex = 1
		oControl.setfocus()
	ENDIF
ENDFOR
Apparently, if this class isn't the first control on the form, it doesn't show up. Seems like a pretty cheesy workaround to me, any ideas?

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
Reply
Map
View

Click here to load this message in the networking platform