Class TDrawItem

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TDrawItem = class(TPersistent)

Description

Hierarchy

Overview

Fields

Private FRect: TRect;
Private FFont: TFont;
Private FText: string;
Private FSelected: boolean;
Private FEditing: boolean;
Private FOnChange: TNotifyEvent;
Private FOnDraw: TDrawTextEvent;

Methods

Private procedure FontChanged(Sender: TObject);
Private procedure SetFont(const Value: TFont);
Private procedure SetRect(const Value: TRect);
Private procedure SetText(const Value: string);
Private procedure SetEditing(const Value: boolean);
Private procedure SetSelected(const Value: boolean);
Protected procedure Changed;
Public Constructor Create;
Public Destructor Destroy; override;
Public procedure Draw(ACanvas: TCanvas);

Properties

Public property Selected: boolean read FSelected write SetSelected;
Public property Editing: boolean read FEditing write SetEditing;
Published property Text: string read FText write SetText;
Published property Rect: TRect read FRect write SetRect;
Published property Font: TFont read FFont write SetFont;
Published property OnChange: TNotifyEvent read FOnChange write FOnChange;
Published property OnDraw: TDrawTextEvent read FOnDraw write FOnDraw;

Description

Fields

Private FRect: TRect;
 
Private FFont: TFont;
 
Private FText: string;
 
Private FSelected: boolean;
 
Private FEditing: boolean;
 
Private FOnChange: TNotifyEvent;
 
Private FOnDraw: TDrawTextEvent;
 

Methods

Private procedure FontChanged(Sender: TObject);
 
Private procedure SetFont(const Value: TFont);
 
Private procedure SetRect(const Value: TRect);
 
Private procedure SetText(const Value: string);
 
Private procedure SetEditing(const Value: boolean);
 
Private procedure SetSelected(const Value: boolean);
 
Protected procedure Changed;
 
Public Constructor Create;
 
Public Destructor Destroy; override;
 
Public procedure Draw(ACanvas: TCanvas);
 

Properties

Public property Selected: boolean read FSelected write SetSelected;
 
Public property Editing: boolean read FEditing write SetEditing;
 
Published property Text: string read FText write SetText;
 
Published property Rect: TRect read FRect write SetRect;
 
Published property Font: TFont read FFont write SetFont;
 
Published property OnChange: TNotifyEvent read FOnChange write FOnChange;
 
Published property OnDraw: TDrawTextEvent read FOnDraw write FOnDraw;
 

Generated by PasDoc 0.12.1 on 2013-05-13 15:41:31