You can use the Door library, that is what it is meant for, adding "one off "things to standard libraries. obj1 is a Door library Object.
B4X:Sub App_Start obj1.New1(false) ... End Sub ... obj1.value = WebBrowser.ControlRef obj1.RunMethod("Refresh")
It doesn't seem possible, at least not easily. I've tried removing it with the Door library by assigning a new empty ContextMenu and with Formlib.RemoveContextMenu but it's always thereHowever I'd like to remove the context menu.
What makes you think it is not using PIE? I have an HTC Diamond, also with Opera as the default browser, but the WebBrowser.dll still uses the PIE engine - you can tell from the press and hold context menu which is PIE and not Opera.Is there a way to tell teh library to Use PIE and not the default browser?
What makes you think it is not using PIE? I have an HTC Diamond, also with Opera as the default browser, but the WebBrowser.dll still uses the PIE engine - you can tell from the press and hold context menu which is PIE and not Opera.
I would be very surprised if it were otherwise as WebBrowser.dll uses the .NET WebBrowser control which is a wrapper over the native Microsoft WebBrowser ActiveX control which is part of PIE.
FileOpen(c1,AppPath&"\cacheinfo.htm",cWrite)
FileWrite(c1,t)
FileClose(c1)
web.Navigate("File://"&AppPath&"\cacheinfo.htm")
CACHEINFOFORM.Show
What I think is happening is that because you have specified a file the WebBrowser is calling the app associated with that file extension to open that file rather than trying to display it itself. The default app for htm files is Opera. If I try that with a htm file on my Diamond my WebBrowser window stays empty but Opera opens. If I do that with a jpg then the Picture Viewer opens as this is the default for jpgs.web.Navigate("File://"&AppPath&"\cacheinfo.htm")
What I think is happening is that because you have specified a file the WebBrowser is calling the app associated with that file extension to open that file rather than trying to display it itself. The default app for htm files is Opera. If I try that with a htm file on my Diamond my WebBrowser window stays empty but Opera opens. If I do that with a jpg then the Picture Viewer opens as this is the default for jpgs.
Sub Globals
'Declare the global variables here.
End Sub
Sub App_Start
Form1.Show
web.New1("form1",1,1,200, 200)
HtmStr = "<html><head><title>homepage</title></head><body>" & CRLF
HtmStr = HtmStr & "<p><img src='file://\Storage Card\My Documents\Image1.jpg'></p>"
HtmStr = HtmStr & "<p><img src='file://\Storage Card\My Documents\Image2.jpg'></p>"
HtmStr = HtmStr & "</body></html>"
web.DocumentText=HtmStr
End Sub
I'm afraid not. Why would you want to anyway?
What I think is happening is that because you have specified a file the WebBrowser is calling the app associated with that file extension to open that file rather than trying to display it itself. The default app for htm files is Opera. If I try that with a htm file on my Diamond my WebBrowser window stays empty but Opera opens.
Should I use another web.url statement; possibly with more parameters? Or does another solution exist to get with the WebBrowser the user interface of GoogleMap.exe?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?