[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TImage

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TImage is a graphic image placed on the form; usually loaded from a picture file.

Declaration

Source position: extctrls.pp line 575

type TImage = class(TCustomImage)

published

  property AntialiasingMode: TAntialiasingMode;

  

Indicates if anti-aliasing is used when rendering the image.

  property Align: TAlign;

  

Specifies the placement of the control inside its Parent.

  property Anchors: TAnchors;

  

The set of anchor definitions for this control.

  property AutoSize: Boolean;

  

Allows automatic adjustment of the size for the control, according to its content.

  property BorderSpacing: TControlBorderSpacing;

  

Determines the inner and outer border spacing for this control.

  property Center: Boolean;

  

Indicates if the image should be centered.

  property KeepOriginXWhenClipped: Boolean;

  

Preserves the Left coordinate when a clipped image is centered.

  property KeepOriginYWhenClipped: Boolean;

  

Preserves the Top coordinate when a clipped image is centered.

  property Constraints: TSizeConstraints;

  

The minimum and maximum Width and Height for the control.

  property DragCursor: TCursor;

  

The cursor shape shown while the control is dragged.

  property DragMode: TDragMode;

  

Allows the user to drag the control.

  property Enabled: Boolean;

  

Determines whether the control reacts on mouse or keyboard input.

  property OnChangeBounds: TNotifyEvent;

  

Event handler for a change of the Bounds of the control.

  property OnClick: TNotifyEvent;

  

Notification handler for mouse clicks.

  property OnContextPopup: TContextPopupEvent;

  

Invoked when a context-sensitive pop-up menu is requested.

  property OnDblClick: TNotifyEvent;

  

Event Handler for double mouse clicks.

  property OnDragDrop: TDragDropEvent;

  

This handler determines the action on an drop onto this control, in a drag-drop operation.

  property OnDragOver: TDragOverEvent;

  

Event handler for a control being dragged over this control.

  property OnEndDrag: TEndDragEvent;

  

Notification handler for the end of a dragging operation.

  property OnMouseDown: TMouseEvent;

  

Event handler for mouse button going down.

  property OnMouseEnter: TNotifyEvent;

  

Event handler for mouse entering the area of the control.

  property OnMouseLeave: TNotifyEvent;

  

Event handler for mouse leaving the area of the control.

  property OnMouseMove: TMouseMoveEvent;

  

Event handler for mouse movement within the control.

  property OnMouseUp: TMouseEvent;

  

Event handler for mouse button going up.

  property OnMouseWheel: TMouseWheelEvent;

  

Event handler for mouse wheel turned.

  property OnMouseWheelDown: TMouseWheelUpDownEvent;

  

Event handler for downward movement of mouse wheel.

  property OnMouseWheelUp: TMouseWheelUpDownEvent;

  

Event handler for upward movement of the mouse wheel.

  property OnMouseWheelHorz: TMouseWheelEvent;

  

Event handler for horizontal movements of the mouse wheel.

  property OnMouseWheelLeft: TMouseWheelUpDownEvent;

  

Event handler for left movements of the mouse wheel.

  property OnMouseWheelRight: TMouseWheelUpDownEvent;

  

Event handler for right movements of the mouse wheel.

  property OnPaint: TNotifyEvent;

  

Event handler signalled to paint the control.

  property OnPictureChanged: TNotifyEvent;

  

Event handler signalled when Picture is changed.

  property OnPaintBackground: TImagePaintBackgroundEvent;

  

Event handler signalled to draw the background for the image.

  property OnResize: TNotifyEvent;

  

Notification handler for a resize of the control.

  property OnStartDrag: TStartDragEvent;

  

Event handler for the start of a dragging operation.

  property ParentShowHint: Boolean;

  

If true, the value of ShowHint for the control will be the same as the one from the Parent. Default is true.

  property Picture: TPicture;

  

Contains the image displayed in the control.

  property PopupMenu: TPopupMenu;

  

A context-sensitive menu that pops up when the right mouse button is clicked over this control.

  property Proportional: Boolean;

  

True if image is proportional.

  property ShowHint: Boolean;

  

Enables the Hint display.

  property Stretch: Boolean;

  

Indicates if the image is resized to the client area for the control.

  property StretchOutEnabled: Boolean;

  

Allows the image to be resized proportionally when the image drawing area is resized.

  property StretchInEnabled: Boolean;

  

Allows the image to be resized proportionally when the image drawing area is resized.

  property Transparent: Boolean;

  

Indicates if the image has a clear, non-opaque background.

  property Visible: Boolean;

  

Allows the control, and all of its children, to be displayed or hidden.

end;

Inheritance

TImage

  

TImage is a graphic image placed on the form; usually loaded from a picture file.

|

TCustomImage

  

TCustomImage - the base type for TImage.

|

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

|

TControl

  

The base class for visible controls.

|

TLCLComponent

  

The base class for LCL components which have an associated widget.

|

TComponent

?

TObject

Description

TImage : a graphic image placed on the form; usually loaded from a picture file. The actual image is found in Picture or Canvas.

Inherits most of its properties from its ancestors, TCustomImage, TGraphicControl and TControl

See also

TCustomImage

  

TCustomImage - the base type for TImage.

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

TControl

  

The base class for visible controls.

How To Use Standard Controls

  

How to use StdCtrls, ComCtrls or ExtCtrls.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.