RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebDisp.TDispatchImageHandledEvent Type

TDispatchImageHandledEvent is the type for event handlers that can handle requests for an image field value.

Pascal
TDispatchImageHandledEvent = procedure (Sender: TObject; Image: TObject; Params: TStrings; var Handled: Boolean) of object;
C++
(Sender: TObject; Image: TObject; Params: TStrings; var Handled: Boolean) ( TDispatchImageHandledEvent)();

TDispatchImageHandledEvent is the type for event handlers of an adapter dispatcher that can handle requests for the image from an image field. If the event handler adds the requested image (or a substitute) to the current response message, it can then prevent the default handling that would otherwise occur. 

Sender is the adapter dispatcher component that received the HTTP request message. 

Image is the object that would ordinarily provide the image. If the dispatcher could not find an object to provide the image, this parameter is nil (Delphi) or NULL (C++). 

Params lists the parameters for the image, in 'Name=Value' format. The '__id' parameter gives the name of the requested image. If the current request is not a request to retrieve an image, Params is nil (Delphi) or NULL (C++). 

Handled returns an indication of how the adapter dispatcher should proceed after the event handler exits. If the event handler sets Handled to true, the dispatcher assumes that the event handler has taken care of the request. If the event handler leaves Handled set to false, the dispatcher continues with its normal processing of the request message. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!