RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
WebAdapt.TImageFieldGetHREFEvent Type

TImageFieldGetHREFEvent is the type for event handlers that supply an URL that can be used to access an image field associated with an adapter field..

Pascal
TImageFieldGetHREFEvent = procedure (Sender: TObject; var HREF: string) of object;
C++
(Sender: TObject; var HREF: string) ( TImageFieldGetHREFEvent)();

TImageFieldGetHREFEvent is the type for the OnGetHREF event handler of an adapter field whose value is an image. This event handler lets you supply the URL that clients use to retrieve the image associated with the adapter field. The event occurs when server-side script uses the AsHREF property of the adapter field.  

Sender is the adapter field object that represents an image. 

Handled returns an indication of how the adapter dispatcher should proceed after the event handler exits. If the HREF returns the URL that clients use to request the field's image from the adapter field. If the TImageFieldGetHREFEvent event handler does not supply a URL, the adapter field generates an URL automatically based on the request parameters for the image file. 

 

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