Class TrDBBlob
Unit
rDBComponents
Declaration
type TrDBBlob = class(TPanel)
Description
DB component for working with Blob fields, contains function for loading, saving and opening of any content in blob
Hierarchy
Overview
Methods
|
procedure OpenBlob; |
|
function SaveAsFile(const FileName: string; ProgressInfo: string = ''; InfoStayVisible: boolean = false): boolean; |
|
function LoadFromFile(const FileName: string; ProgressInfo: string = ''; InfoStayVisible: boolean = false): boolean; |
|
procedure ClearBlob; |
|
procedure RenameBlob; |
|
function BlobInfo: string; |
Properties
Description
Methods
|
procedure OpenBlob; |
save blob content to disk and run
|
|
function SaveAsFile(const FileName: string; ProgressInfo: string = ''; InfoStayVisible: boolean = false): boolean; |
save blob to file
|
|
function LoadFromFile(const FileName: string; ProgressInfo: string = ''; InfoStayVisible: boolean = false): boolean; |
load blob from file
|
|
procedure ClearBlob; |
clear blob field and info field, works if dataset is in edit state or autoedit is on
|
|
procedure RenameBlob; |
rename info field, works if dataset is in edit state or autoedit is on
|
|
function BlobInfo: string; |
return text info with name and size of blob
|
Properties
|
property DataFieldBlob: string read GetDataFieldBlob write SetDataFieldBlob; |
datalink to blob field containing data
|
|
property DataSourceBlob: TDataSource read GetDataSourceBlob write SetDataSourceBlob; |
datalink to blob field containing data
|
|
property DataFieldInfo: string read GetDataFieldInfo write SetDataFieldInfo; |
datalink to info field containing filename and filetype
|
|
property DataSourceInfo: TDataSource read GetDataSourceInfo write SetDataSourceInfo; |
datalink to info field containing filename and filetype
|
|
property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix; |
define prefix for auto-named function (name of component is set according datafield)
|
|
property DBEditLabel: TDBBoundLabel read FDBEditLabel; |
define properties of bound label
|
|
property InfoLabel: TChildLabel read FInfoLabel; |
define properties of info label
|
|
property BtnOpen: TChildBtn read FBtnOpen; |
define properties of Open button
|
|
property BtnLoad: TChildBtn read FBtnLoad; |
define properties of Load button
|
|
property BtnSave: TChildBtn read FBtnSave; |
define properties of Save button
|
|
property BtnClear: TChildBtn read FBtnClear; |
define properties of Clear button
|
|
property BtnMargin: integer read FBtnMargin write SetBtnMargin; |
define margin for buttons
|
|
property BtnSpace: integer read FBtnSpace write SetBtnSpace; |
define space between buttons
|
|
property OpenByApp: string read FOpenByApp write FOpenByApp; |
define application used to open blob content
|
|
property OpenParams: string read FOpenParams write FOpenParams; |
define parameters used to open blob content
|
|
property OpenTempDir: string read FOpenTempDir write FOpenTempDir; |
define directory used to store blob content for opening
|
|
property FileFilter: string read FFileFilter write FFileFilter; |
define file filter used in OpenFile dialog
|
|
property FileSizeLimitMB: double read FFileSizeLimitMB write FFileSizeLimitMB; |
define limit for size of loaded file
|
|
property OnLoadBlob: TBlobFileEvent read FOnLoadBlob write FOnLoadBlob; |
event is called after file is selected before start loading of file content
|
|
property OnOpenBlob: TBlobFileEvent read FOnOpenBlob write FOnOpenBlob; |
event is called after blob is stored and before file is open
|
|
property OnPrepareBlobDataset: TNotifyEvent read FPrepareBlobDataset write FPrepareBlobDataset; |
event is called each time before blob dataset is accessed - user can open and load data in this event
|
|
property ShowProgressWindow: boolean read FShowProgressWindow write FShowProgressWindow default true; |
define whether progress window is shown during time consuming operations
|
Generated by PasDoc 0.15.0.
|