Image

The Image control is used in places a graphic element should be inserted into the application's interface. These images, usually, are simply for visual effect, such as displaying logos or pictures or used to indicate a clickable area. In this later case the Image control functions much like the Button control while on the first one it more closely resembles the simple functionality of a TextLabel control.

Properties

The BorderColor property specifies the color that should be used for drawing a rectangular border around the Control. Note: the border will not be visible unless the BorderStyle and BorderWidth properties are also set.

The Border Width property specifies the line width used to draw the rectangular border around the Control. Note: the border will not be visible unless the BorderColor and BorderStyle properties are also set.

If the Enabled property is set to false, the Control's state or value cannot be changed by the user.

Note For Timer Control: This property controls whether the Timer event will be triggered at the time interval specified in the Interval property. If the Enabled property is set to false, the Timer event will not be triggered.

The Opacity property determines the extent to which the Control obscures any controls placed in its background. A value of 0 means that background controls are fully visible, whereas a value of 100 means that background controls are completely obscured.

The StretchMode property is used in conjunction with the Stretch property do specify how the picture should be stretched inside the Image control. The available options are: FitX, FitXY and FitY which determine in which axis the image will be stretched or if in both.

The visible property is used to make controls visible or invisible. Invisible controls are frequently used to allow for easy access to information from a database table field, if the control is bound to one.

This event is fired within the browser when the mouse button, or any other pointing device button, is pressed while it is over a control. On a PC-based mouse, it specifically relates to the left-hand mouse button being depressed.

This event is fired within the browser when the mouse button, or any other pointing device button, is released over a control. On a PC-based mouse, it specifically relates to when the left-hand mouse button is being released.

Set Bundle property to True to enable bundling images placed on the form together. Image bundling improves performance as it requires less amount of round-trips to the server, however changing Picture property for bundled image programmaticly may result in undesirable visual effects.