Class TrDBImage

Unit

Declaration

type TrDBImage = class(TrImageZoom)

Description

DB version of TrImageZoom, provides zoom function with scrollbars and drag and move function

Hierarchy

Overview

Methods

Public function CutImageToClipboard: boolean; override;
Public function PasteImageFromClipboard: boolean; override;
Public function LoadFromFile(const FileName: string): boolean; override;
Public function ResizePic(ratio: double): boolean; override;
Public function ShowEditorWindow: boolean; override;

Properties

Published property DataField: string read GetDataField write SetDataField;
Published property DataSource: TDataSource read GetDataSource write SetDataSource;
Published property DBEditLabel: TDBBoundLabel read FDBEditLabel;
Published property BoundButtons: TBoundButtons read FBoundButtons write FBoundButtons;
Published property ShowConvertMenu: boolean read FShowConvertMenu write SetShowConvertMenu default true;
Published property MaxImageSize: integer read FMaxImageSize write FMaxImageSize default 0;
Published property PictureIfEmpty: TPicture read FPictureIfEmpty write SetPictureIfEmpty;
Published property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix;

Description

Methods

Public function CutImageToClipboard: boolean; override;

cut image and insert to clipboard, works if dataset is in edit state or autoedit is on

Public function PasteImageFromClipboard: boolean; override;

paste image from clipboard, works if dataset is in edit state or autoedit is on

Public function LoadFromFile(const FileName: string): boolean; override;

load image from file (BMP, JPG, PNG format is supported), works if dataset is in edit state or autoedit is on

Public function ResizePic(ratio: double): boolean; override;

change resolution of image, works if dataset is in edit state or autoedit is on

Public function ShowEditorWindow: boolean; override;

show image in independent window supporting edit functions

Properties

Published property DataField: string read GetDataField write SetDataField;
 
Published property DataSource: TDataSource read GetDataSource write SetDataSource;
 
Published property DBEditLabel: TDBBoundLabel read FDBEditLabel;

define properties of bound label

Published property BoundButtons: TBoundButtons read FBoundButtons write FBoundButtons;

define properties of bound buttons - ZoomIn, ZoomOit, Fit, Edit

Published property ShowConvertMenu: boolean read FShowConvertMenu write SetShowConvertMenu default true;

define whether convert menu is shown

Published property MaxImageSize: integer read FMaxImageSize write FMaxImageSize default 0;

define maximum size of picture - bigger picture is resize when user load or copy image to field

Published property PictureIfEmpty: TPicture read FPictureIfEmpty write SetPictureIfEmpty;

define picture which is used as background for empty field

Published property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix;

define prefix for auto-named function (name of component is set according datafield)


Generated by PasDoc 0.15.0.