|
Load the
WOW control with your content
So now you have created your content and the EzStor file and
added your content to it. Now its time to display it in
your application. This is actually the easiest part.
If the name of the WOW control you created in step 3 is Wow1,
and the sample.hsp EzStor file is in the same folder as your
application, then this is how you would load the page at
runtime:
Wow1.Navigate "x-hsp://c:/myfolder/sample.hsp/cust_table.asp"
|

The links in the webpage can open a new IE browser
window or an email message. But one of the most
powerful features of the WOW control is its ability to
pass mouse click events (or any event) from the webpage
through to your application code as an event. This
is absolutely critical for embedded webbrowser control
programming. For example, clicking on a customer
name link in the above form will fire an event in the
application code, passing the customer ID so the
application can take appropriate action.
If you wanted to view a single customer, you could
pass a querystring to display_cust.asp for the
script code to pick up.
Wow1.Navigate "x-hsp://c:/myfolder/sample.hsp/display_cust.asp?custno=342"
|

Conclusion
As you have seen, its easy to integrate webbrowser controls in
Windows applcations. The WOW control has many
enhancements and extensions to the standard webbrowser control
that are crucial to successful webbrowser control programming.
Using HSP with WOW allows you to generate HTML dynamically in
your application using standard ASP. And using EzStor
allows you to package up all of your ASP/HTML/graphic content
into a single file for easy and secure distribution.
<< Back
|