Class TrDBLookupComboBox

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TrDBLookupComboBox = class(TDBLookupComboBox)

Description

enhanced DBLookupComboBox with bound label

Hierarchy

  • TDBLookupComboBox
  • TrDBLookupComboBox

Overview

Methods

Public procedure UpdateState(Sender: TObject); virtual;
Public function DropDownDefaultItemHeight: integer;

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 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 OnGetListItemProps: TGetLookupListItemProps read FGetListItemProps write FGetListItemProps;

Description

Methods

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

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 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 OnGetListItemProps: TGetLookupListItemProps read FGetListItemProps write FGetListItemProps;

event for user definition of lookup dropdown item properties


Generated by PasDoc 0.13.0 on 2016-02-19 08:14:10