Class TrDBLookupComboBox

Unit

Declaration

type TrDBLookupComboBox = class(TDBLookupComboBox)

Description

enhanced TDBLookupComboBox with bound label

Hierarchy

  • TDBLookupComboBox
  • TrDBLookupComboBox

Overview

Methods

Public procedure CloseUp(Accept: boolean); override;
Public procedure UpdateState(Sender: TObject); virtual;
Public function DropDownDefaultItemHeight: integer;
Public function GetSelectedText: string;

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 BoundLabel: rDBComponents.TBoundLabel read FBoundLabel;
Published property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix;
Published property DropDownAutoWidth: boolean read FDropDownAutoWidth write FDropDownAutoWidth default true;
Published property DropDownMaxWidth: integer read FDropDownMaxWidth write FDropDownMaxWidth default 600;
Published property DropDownItemHeight: integer read FDropDownItemHeight write FDropDownItemHeight default 0;
Published property DropDownItemIncreaseHeight: integer read FDropDownItemIncreaseHeight write FDropDownItemIncreaseHeight default 2;
Published property DropDownItemIncreaseWidth: integer read FDropDownItemIncreaseWidth write FDropDownItemIncreaseWidth default 0;
Published property ListFieldIndexMax: integer read FListFieldIndexMax write FListFieldIndexMax default 0;
Published property EmptyDisplayValue: string read FEmptyDisplayValue write FEmptyDisplayValue;
Published property OnGetListItemProps: TGetLookupListItemProps read FGetListItemProps write FGetListItemProps;
Published property SearchingResetInterval: integer read FSearchingResetInterval write FSearchingResetInterval default 2500;
Published property AllowLookupFilter: boolean read FAllowLookupFilter write FAllowLookupFilter default false;
Published property AutoDropDown: boolean read FAutoDropDown write FAutoDropDown default false;

Description

Methods

Public procedure CloseUp(Accept: boolean); override;
 
Public procedure UpdateState(Sender: TObject); virtual;

update current state of component (called automatically)

Public function DropDownDefaultItemHeight: integer;

return default item height of standard lookup list

Public function GetSelectedText: string;
 

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 properties of bound label

Published property BoundLabel: rDBComponents.TBoundLabel read FBoundLabel;

define properties of bounded label

Published property DefaultPrefix: string read FDefaultPrefix write SetDefaultPrefix;

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

Published property DropDownAutoWidth: boolean read FDropDownAutoWidth write FDropDownAutoWidth default true;

defines whether width of dropdown list is set according items length

Published property DropDownMaxWidth: integer read FDropDownMaxWidth write FDropDownMaxWidth default 600;

defines maximal width of dropdown list

Published property DropDownItemHeight: integer read FDropDownItemHeight write FDropDownItemHeight default 0;

defines absolute item height of dropdown list, default is used if DropDownItemHeight=0

Published property DropDownItemIncreaseHeight: integer read FDropDownItemIncreaseHeight write FDropDownItemIncreaseHeight default 2;

defines increase of standard item height of dropdown list

Published property DropDownItemIncreaseWidth: integer read FDropDownItemIncreaseWidth write FDropDownItemIncreaseWidth default 0;

defines increase of item column width if DropDownAutoWidth=true

Published property ListFieldIndexMax: integer read FListFieldIndexMax write FListFieldIndexMax default 0;

defines max ListField index which is show in edit window (own paint method is used)

Published property EmptyDisplayValue: string read FEmptyDisplayValue write FEmptyDisplayValue;

defines text value shown if KeyValue is empty

Published property OnGetListItemProps: TGetLookupListItemProps read FGetListItemProps write FGetListItemProps;

event for user definition of lookup dropdown item properties

Published property SearchingResetInterval: integer read FSearchingResetInterval write FSearchingResetInterval default 2500;

define interval without any keypress before reset searching text

Published property AllowLookupFilter: boolean read FAllowLookupFilter write FAllowLookupFilter default false;

allow filtering of data for the lookup field

Published property AutoDropDown: boolean read FAutoDropDown write FAutoDropDown default false;

allow automatic dropdown after key press


Generated by PasDoc 0.15.0.