Information générale
Titre:
_webbrowser4 handling
So (Sergey),
(as I found out that one can easily display JPGs and static GIFs in VFP natively, the next wish cropped up: animated GIFs and styled text!)
I tried the _webbrowser control and got it working. As I need a lean as can
get object (w/o history, GoBack, Search, Parse,....) for lowly P133s, I copied the _webview.vc? files and stripped the class of all its full VFP browser fat (properties and methods) and reset the standard ones to Default.
Avoided an "Unknown Name" error by feeding it
this.oleIE.Navigate("file://c:\my\blank.htm")
in the Init method.
With another Navigate() I feed it a picture-URL, like
oForm1.oleIE.Navigate("file://c:\my\"+myPicPath)
Spuriously I still get the "Unknown Name" error in
oForm1.Show
On Resume the first pic shows, but no subsequent ones and LocationURL stays the same.
oForm1.oleIE.Enable=.t. throws the same "Unknown Name" error, but then the right pic shows.
When I catch the error with ON ERROR it does not.
So this must be something with window / control activation,...
AND: Can´t find any docs on the _webbrowser4 standard properties and
methods, only the custom ones...?
Hope for takers, otherwise need to spend another coupla hours to analyze the example.
Thx
Günter
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement