Class TrDBEdit

Unit

Declaration

type TrDBEdit = class(TDBEdit)

Description

enhanced TDBEdit with bound label and left + right edit button

Hierarchy

  • TDBEdit
  • TrDBEdit

Overview

Methods

Public procedure UpdateState(Sender: TObject); virtual;
Public procedure ValidateEdit; override;

Properties

Published property DataField: string read GetDataField write SetDataField;
Published property ReadOnlyColor: TColor read FReadOnlyColor write FReadOnlyColor default clBtnFace;
Published property DBEditLabel: TDBBoundLabel read FDBEditLabel;
Published property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix;
Published property Images: TImageList read FImages write SetImages;
Published property LeftButton: TrDBEditButton read FLeftButton write SetLeftButton;
Published property RightButton: TrDBEditButton read FRightButton write SetRightButton;
Published property OnLeftButtonClick: TNotifyEvent read GetOnLeftButtonClick write SetOnLeftButtonClick;
Published property OnRightButtonClick: TNotifyEvent read GetOnRightButtonClick write SetOnRightButtonClick;

Description

Methods

Public procedure UpdateState(Sender: TObject); virtual;

update current state of component (called automatically)

Public procedure ValidateEdit; override;

provide additional validation of the entered value (clean white spaces)

Properties

Published property DataField: string read GetDataField write SetDataField;
 
Published property ReadOnlyColor: TColor read FReadOnlyColor write FReadOnlyColor default clBtnFace;

define color for not edit state

Published property DBEditLabel: TDBBoundLabel read FDBEditLabel;

define bound label component

Published property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix;

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

Published property Images: TImageList read FImages write SetImages;

image list used for LeftButton and RightButton

Published property LeftButton: TrDBEditButton read FLeftButton write SetLeftButton;

Left internal Button

Published property RightButton: TrDBEditButton read FRightButton write SetRightButton;

Right internal Button

Published property OnLeftButtonClick: TNotifyEvent read GetOnLeftButtonClick write SetOnLeftButtonClick;

click to Left internal Button

Published property OnRightButtonClick: TNotifyEvent read GetOnRightButtonClick write SetOnRightButtonClick;

click to Right internal Button


Generated by PasDoc 0.15.0.