# Type TStringsRequestEvent

## Declaration

TStringsRequestEvent = procedure(Sender: TObject; const SRC: string;

var Strings: TStrings) of Object;

## Description

The TStringsRequestEvent type is the type for the OnStringsRequest event. This event allows a handler to respond with an HTML document in TStrings form when a request is made for a new document. The parameters are:

SRCA string identifying the document requested. This string will usually be taken from a SRC= attribute.

StringsThe TStrings object containing the HTML text supplied by the event handler.

The following points are important in writing the event handler:

TFrameViewer will not change or free the TStrings object.

In general, you must respond with a valid Strings parameter. If NIL is returned for the Strings parameter, TFrameViewer will attempt to load the file identified by SRC. However, this is unreliable unless SRC contains a filename with the full path.

Only one of the event handlers in the group, OnBufferRequest, OnFileRequest, OnStreamRequest, and OnStringsRequest, may be active at the same time.

See also:

OnBufferRequest Event

OnFileRequest Event

OnStreamRequest Event