Class TrDBComboBox

Unit

Declaration

type TrDBComboBox = class(TDBComboBox)

Description

enhanced TDBComboBox with bound label

Hierarchy

  • TDBComboBox
  • TrDBComboBox

Overview

Methods

Public procedure UpdateState(Sender: TObject); virtual;
Public procedure ResetTimer(SetActive, CallEventNow: boolean);

Properties

Public property ScaleRatio: double read FScaleRatio;
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 UpdateAfterClick: boolean read FUpdateAfterClick write FUpdateAfterClick default false;
Published property DisplayedItems: TDisplayedItems read FDisplayedItems write FDisplayedItems;
Published property OnGetListItemProps: TGetListItemProps read FGetListItemProps write FGetListItemProps;
Published property NullValueKey: TShortCut read FNullValueKey write FNullValueKey default 0;
Published property UpdateTimerDelay: cardinal read FUpdateTimerDelay write FUpdateTimerDelay default 0;
Published property OnUpdateTimer: TNotifyEvent read FUpdateTimerEvent write FUpdateTimerEvent;
Published property OnUpdateLoadItems: TComboLoadItemsEvent read FOnUpdateLoadItems write FOnUpdateLoadItems;
Published property LastKeyDown: Word read FLastKeyDown;
Published property ItemHeightEx: integer read FItemHeightEx write SetItemHeightEx default cDBComboBoxItemHeightDefault;

Description

Methods

Public procedure UpdateState(Sender: TObject); virtual;

update current state of component (called automatically)

Public procedure ResetTimer(SetActive, CallEventNow: boolean);

reset after change timer

Properties

Public property ScaleRatio: double read FScaleRatio;

define actual scale ratio relative to original designed size

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 UpdateAfterClick: boolean read FUpdateAfterClick write FUpdateAfterClick default false;

define wheather record is update directly after click instead of after exit

Published property DisplayedItems: TDisplayedItems read FDisplayedItems write FDisplayedItems;

define additional item columns

Published property OnGetListItemProps: TGetListItemProps read FGetListItemProps write FGetListItemProps;

event for user definition of item properties

Published property NullValueKey: TShortCut read FNullValueKey write FNullValueKey default 0;

define shortcut to set NULL value to the field

Published property UpdateTimerDelay: cardinal read FUpdateTimerDelay write FUpdateTimerDelay default 0;

define after update timer interval

Published property OnUpdateTimer: TNotifyEvent read FUpdateTimerEvent write FUpdateTimerEvent;

event called with defined delay after update

Published property OnUpdateLoadItems: TComboLoadItemsEvent read FOnUpdateLoadItems write FOnUpdateLoadItems;

event called to load items during OnUpdateTimer event

Published property LastKeyDown: Word read FLastKeyDown;

contain last pressed key

Published property ItemHeightEx: integer read FItemHeightEx write SetItemHeightEx default cDBComboBoxItemHeightDefault;

define item height for fixed draw before scaling


Generated by PasDoc 0.15.0.