# Using the TFrameViewer Component

TFrameViewer Reference

Tasks

To load an HTML document or HTML Frame document from a file, use the LoadFromFile method.

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.

To work with documents in buffer, special file, stream, or TStrings form, use an OnBufferRequest, OnFileRequest, OnStreamRequest, or OnStringsRequest event handler. Initiate document loading using the Load method.