RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomAdapterDispatcher.DoBeforeDispatchAdapterRequest Method

Generates an OnBeforeDispatchAction and an OnBeforeDispatchImage event.

Pascal
procedure DoBeforeDispatchAdapterRequest(AObject: TObject; var AHandled: Boolean);
C++
__fastcall DoBeforeDispatchAdapterRequest(TObject * AObject, Boolean AHandled);

TCustomAdapterDispatcher calls DoBeforeDispatchAdapterRequest internally before calling on an adapter to handle a request. It calls this method only after it has identified the appropriate handler for responding to the current request. 

DoBeforeDispatchAdapterRequest assembles the parameters for an action request and generates an OnBeforeDispatchAction event. It then assembles the parameters for an image request and generates an OnBeforeDispatchImage event. 

AObject is the adapter for handling the current request. 

AHandled returns true if an event handler handled the request. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!