Re: Opening an HTML page with VB6
- From: Ulrich Korndoerfer <ulrich_wants_nospam@xxxxxxxxxxxx>
- Date: Wed, 07 Nov 2007 16:50:38 +0100
Hi,
Anonymous wrote:
Thanks Ulrich - I downloaded the demo and tried one of the buttons (google search) - and it promptly crashed ... tnhat dosen't instill too much confidence, when a demo behaves like that - also what would have
Now when I try this, it does not crash but a DOS window opens showing some debug messages (saying it detected malformed CSS). The DOS window's purpose is to show debug messages and only opens when the engine detects some errors eg in the HTML or CSS code of a page. Unfortunately the demo is programmed such that the browser window closes too if the DOS window is closed. So simply let it open (you can minimize it).
But anyway, HtmLayout is *not* a general web browsing tool like IE or Firefox. Eg out of the box it has no scripting capabilities (like JavaScript). Of course it also does not assist Flash, media players and so on right out of the box. And it implements only a subset of CSS (eg the CSS "!important" qualifier is not implemented).
And the demo browser (although unfortunately not made clear by the author) is not a demo showing full fledged Web browsing capabilities. It is a demo of how to embed the HtmLayout control into an application (the C sources of the demo browser are in the HtmLayout SDK). Its other purpose is to show you the possibilities you have with the HtmLayout special extensions of Html and CSS. Try the html samples in the HtmLayout SDK (there are lots of them).
HtmLayout is made to be embedded in your own application. There it is not thought of being a full fledged general purpose web browser out of the box (but you could make it to).
Its intention is to give you a tool that can render Html *you* have *control* over (eg Html generated by you or according to rules you declared).
This does not mean that this Html must be unexpressive and simple. The Html and CSS HtmLayout understands is powerfull. Also "scripting" can be done. As HtmLayout is to be embedded in an application, the "scripting" capabilities have to be supplied by the application it is embedded in. Even flash and the like can be embedded in a page, but then must be controlled from the application. It is not automatically controlled by HtmLayout.
been particularly useful (especially as far as the ActiveX control is concerned - and thus for VB6 users), would be a simple Vb6 project that demonstrates either:
1). Opening and displaying an html page (should be trivial) OR
2). A very simple browser using the control (probably much more complicated)
Do you have any such examples? For me - availability of sample code as described in case 1 above would be sufficient for me to buy the control.
http://www.terrainformatica.com/htmlayout/axmain.whtm offers for download the ActiveX SDK:
http://www.terrainformatica.com/htmlayout/AxHTMLayoutSDK.zip
This contains the htmlayout.dll (although an outdated one, you can simply replace it with the current version) and the ActiveX wrapper HtmLayout.ocx. There are also the html samples and some simple VB samples in it.
It is best if you too download
http://www.terrainformatica.com/htmlayout/HTMLayoutDemo.zip.
From there you get the current html samples and the current dll. For testing the ActiveX wrapper, copy the current htmlayout.dll in the folder the HtmLayout.ocx is in (overwriting the old version there). Then register HtmLayout.ocx.
From my site you additionally can get a tester application (as VB6 source and executable, both in the downloadable zip-archive) for the control. It is quite complex and may obscure how simple in princible the basic using of the control is. The testers main purpose is to get access to and show the events the htmlayout engine raises and for getting access to the document DOM, in general to reveal the inner workings of the HtmLayout control and to test it when fed (using different methods) with special html. The link is:
http://www.prosource.de/Temp/HtmLayoutTester.html
In a couple of days I will release a new, extended version (the current version eg does not have access to the DOM). It may be worth to visit the page again then. The new version has a dependency on the MS Windows Common Controls 6.0 (MSComCtl.ocx), as it uses the TreeView. The old versions already use the Microsoft Shell Controls and Automation (shell32.dll).
--
Ulrich Korndoerfer
VB tips, helpers, solutions -> http://www.proSource.de/Downloads/
.
- References:
- Re: Opening an HTML page with VB6
- From: Anonymous
- Re: Opening an HTML page with VB6
- Prev by Date: Re: Set Path for Folder Picker
- Next by Date: Re: Form Grabbed Focus
- Previous by thread: Re: Opening an HTML page with VB6
- Next by thread: Re: Can't Edit Modules Error
- Index(es):
Relevant Pages
|