How do I call Microsoft Web browser controls in the PB?

zhaozj2021-02-11  179

Use the Microsoft Web Browser control step in PB:

Add OLE objects in a window of PB, select Insert Control, then select "Microsoft Web Browser", (files with the system), you can use the IE browser control directly in this window.

Common functions: (Taken this OLE control to this OLE_WEB) ole_web.object.navigate (String ls_url) file: // Browse a URL,

Such as: ole_web.object.navigate ('http://liulee.myrice.com') is browsing http://liulee.myrice.com page, of course, supporting local files, also supporting local image file browsing, such as JPEG, JPG , GIF, PNG, etc. OLE_WEB.Object.goback () file: // Retreat (if there is no content to retreat, you will pop up the error, you can block the error) Ole_Web.Object.goforward () file: // advance, the same usual event: DocumentComplete: URL The requested page is completed;

DownloadComplete: Downloads in the URL are completed;

Common properties: ole_web.object.width: Pixel height, you need to convert to PBUNIT height to adjust OLE_WEB.Object.Height: 同

Ole_web.object.offline: one of both lines, True, False

You can even write one and IE similar interfaces for browsing web pages or pictures.

转载请注明原文地址:https://www.9cbs.com/read-3760.html

New Post(0)