TWebDBImageControl
Description
This is a DB-aware image control. The image control connects typically to a DB string field and
allows to show the content of the DB string field as an image referring to the URL
in the DB string field value.
The TWebDBImageControl
is connected via DataSource
and DataField
properties to a dataset.
For setting generating the proper image URL
from the DB field value, two additional capabilities
are offered.
Property | Description |
---|---|
BaseURL | Sets the optional URL prefix. In case the DB field only contains the image filename, BaseURL can be set to the full HTTP(S) URL specifier |
OnSetURL | This event is triggered with a var parameter AURL that can be used to transform the DB field value to the required full HTTP(S) URL . |