To use the TFrameBrowser component, you must have event handlers that respond to the OnGetPostRequest and the OnImageRequest events. These events occur whenever a document or an image for a document is requested. These events require that the document or image be returned in stream form. In some cases, the return of the stream may be delayed to allow for downloading the information.
The general sequence of loading a document is as follows:
Call the LoadURL method. The URL parameter supplied should be a full URL and include the protocol desired.
An immediate OnGetPostRequest event will occur. Respond with the stream requested.
Assuming the document contains images, a number of OnImageRequest events will occur. Again respond with a stream for each.
Once the document is loaded, additional events will occur when links are selected, etc.
Tasks
To customize response to clicking on a hotspot, respond to the OnHotSpotTargetClick event.
To implement a status line which shows what URL a hot spot corresponds to, respond to the OnHotSpotTargetCovered event.
To access the properties and methods of the currently active THtmlViewer, use the ActiveViewer Property.
Use the DefFontName, DefFontSize, DefFontColor, DefHotSpotColor,
and DefBackground properties to change the default font and color characteristics for general display.
Use the HTML <body> tag and it's attributes to specify the appearance of a particular HTML document.
To implement a history list and/or Back|Forward buttons, see Setting up a History List.
GIF and PNG Images designed to be transparent are displayed as such automatically.