Type TStreamRequestEvent


Declaration

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

var Stream: TStream) of Object;

Description

The TStreamRequestEvent type is the type for the OnStreamRequest event. This event allows a handler to respond with an HTML document in stream 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.

StreamThe stream containing the HTML text supplied by the event handler.

The following points are important in writing the event handler:

In general, you must respond with a valid Stream parameter. If NIL is returned for the Stream 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

OnStringsRequest Event