TIWCustomImage

TIWCustomImage

TIWCustomImage

The TIWCustomImage is the base class for TIWImage, TIWImageFile and TIWImageButton controls.

TIWCustomImage = class(TIWCustomControl)

Properties

property AltText: string;

Use this property to specify an alternate text for the image. More information here.

property AutoSize: Boolean;

Use this property to force the control to adjust its size automatically in accordance to the image size. If AutoSize is false, the control will use the design-time size or any pre-render adjustment you do on the image size. Setting this property to True automatically sets UseSize to False.

property BorderOptions: TIWBorderOptions

Use this property to change the border options of the image.

TIWBorderOptions properties

  • property Color: TIWColor read FColor write SetColor;
  • property Width: Integer read FWidth write SetWidth;

property Confirmation: string;

Use this property to inform the browser to ask the user to confirm the operation assigned to the image’s OnClick event. The text you type will be shown in the confirmation dialog showed by the browser. If the user presses OK, the code associated with the OnClick event will be execute. Has no effect for Async events.

property UseSize: Boolean;

Use this property as True to force the control to use the design-time size or any pre-render adjustment you do on the image size. Setting this property to True automatically sets AutoSize to False.

Events

property OnClick;

This event is triggered when the user click on the control. This event forces the full page to be rendered, ie, it is a full submit event.