Agenda Why Use HTML in Desktop Applications? How to Display Web Content in Desktop Applications HTML Interface Uses HTML vs. OLE Automation
Why Use HTML in Desktop Applications Create Interfaces not easily created with standard VFP controls Leverage Pre-existing Web Interfaces Interact with Websites in Desktop Apps Minimize Need For Automation
HTML In the Interface – Getting Started Requires use of ActiveX Control Most use MS Web Browser Control which is based on IE. Mozilla Control Also Available ( http://www.iol.ie/~locka/mozilla/control.htm)
IE vs. MozillaIE Mozilla Commercial, made by MS Open Source & inactive Does not conform to Conforms to HTML HTML standards standards Supports Design Mode Does not support design 10 MB+ Download mode Intellisense 4MB Download No Intellisense
Using the Web Browser Controls Subclass or insert directly into container Navigate to blank page in init: This.navigate([About:Blank]) Creates Document Object See Rick Strahl’s Article: http://west-wind.com/presentations/shellapi/shellapi.asp
HTML in the Desktop FanList.SCX FanList.SCX is a sample data entry form. It’s primary purpose is to illustrate how HTML can provide a more user-friendly substitute for grids when pictures and edit regions need to be part of the grid.
HTML in the Desktop HTMLPreview.SCX Did you ever want to jump straight into data from a report preview or drill down into more detail from a report preview? That’s what this form is all about.
HTML in the Desktop HTMLPreview2.SCX Email, Website and Image Links in report preview
HTML in the Desktop Customer.SCX & ShowMap.SCX Integrate Google Maps with Desktop App
HTML in the Desktop HTMLEditor.SCX Basic HTML Editor Makes use of DesignMode
HTML in the Desktop MailMerge.SCX Reduce versionitis and API difference issues between word processors. Use standards based language vs. proprietary format. Enjoy the performance and simplicity of text vs. automation. Get HTML Email as a bonus.
HTML in the Desktop WebDev.SCX The WebDev form is the form that was used in my “HTML and Visual FoxPro” session. This form makes use of the web browser control and provides a great example of performing local file based operations on HTML and displaying them in the desktop.
HTML in the Desktop WebDevGecko.SCX This form is a Gecko (Mozilla based) implementation of the WebDev form.
Conclusion Visual FoxPro is a rockin’ host for HTML interfaces VFP’s DML, ActiveX support and text handling abilities make it possible to do things with HTML that you might not do on the web itself. Fox Rocks!