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

TPaintBox

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

TPaintBox: a painted rectangular box with defined size and color

Declaration

Source position: extctrls.pp line 547

type TPaintBox = class(TGraphicControl)

protected

  procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

  procedure Paint; override;

  

Virtual Paint method called in response to paint requests.

  function GetControlClassDefaultSize; override;

  

Find the default size for this class of controls (by reference to parents)

public

  constructor Create(); override;

  

Create - constructor for TPaintBox: calls inherited Create then sets initial bounds and style

  property Canvas;

  

A clipping window to the parent canvas.

published

  property Align;

  

Used to align the control to the top, bottom, left or right of its client.

  property Anchors;

  

The set of anchor definitions for this control

  property BorderSpacing;

  

Determines the border spacing for this control

  property Color;

  

Determine the colour for the current control

  property Constraints;

  

Determine Constraints (max and min height and width) for this control

  property DragCursor;

  

DragCursor - the style of cursor to be used during the Drag process

  property DragMode;

  

DragMode - whether manual or automatic

  property Enabled;

  

Whether the control is Enabled. If not, it usually appears 'greyed-out'

  property Font;

  

The Font to be used for text in this control

  property Hint;

  

Hint - a small informative pop-up box that appears when the mouse 'hovers' over a control

  property ParentColor;

  

ParentColor - should the control have the same colour as the parent? Default is true

  property ParentFont;

  

ParentFont - should the control use the same font as the parent? Default is true

  property ParentShowHint;

  

ParentShowHint - does the control adopt the same hinting behaviour as its parent? Default is true

  property PopupMenu;

  

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

  property ShowHint;

  

Flag to determine: Is hint to be displayed for this control?

  property Visible;

  

Visible - can the control be seen?

  property OnChangeBounds;

  

Event handler for a change in bounds of the control

  property OnClick;

  

Event Handler for mouse click

  property OnDblClick;

  

Event Handle for mouse double-click

  property OnDragDrop;

  

Event handler for the Drag-Drop manoeuvre

  property OnDragOver;

  

Event handler for the case when a control is dragged over another control

  property OnEndDrag;

  

Event handler for the end of a dragging process

  property OnMouseDown;

  

Event handler for when a mouse button is pressed down

  property OnMouseMove;

  

Event handler for mouse movement within the current control

  property OnMouseUp;

  

Event handler for when the mouse button is released, ie "up"

  property OnMouseEnter;

  

Event handler for when the mouse enters the area of the current control

  property OnMouseLeave;

  

Event handler for when the mouse leaves the area of the current control

  property OnMouseWheel;

  

OnMouseWheel - event handler for a movement of the mouse wheel

  property OnMouseWheelDown;

  

OnMouseWheelDown - event handler for downward movement of mouse wheel

  property OnMouseWheelUp;

  

OnMouseWheelUp - event handler for upward movement of mouse wheel

  property OnPaint;

  

OnPaint - event handler for request to paint canvas

  property OnResize;

  

Event Handler for resize of control

  property OnStartDrag;

  

Event handler for start of dragging process

end;

Inheritance

TPaintBox

  

TPaintBox: a painted rectangular box with defined size and color

|

TGraphicControl

  

TGraphicControl is the base class for all lightweight controls.

|

TControl

  

TControl - the main ancestor class for visual controls.

|

TLCLComponent

?

TObject

Description

TPaintBox: a painted rectangular box with defined size and colour

See also

HowToUseStdCtrls

  

How to use StdCtrls, ComCtrls or ExtCtrls

This page is hosted on Get Lazarus Code and Component Repository at SourceForge.net. Fast, secure and Free Open Source software downloads