Class TrComboBoxEx

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TrComboBoxEx = class(TComboBox)

Description

enhanced ComboBox component which provides automatic setting of dropdown listbox width according length of items text

Hierarchy

  • TComboBox
  • TrComboBoxEx

Overview

Methods

Public procedure ResetTimer(SetActive, CallEventNow: Boolean);
Public procedure AddTextToItems(AText: string = '');

Properties

Public property ScaleRatio: double read FScaleRatio;
Published property DropDownAutoWidth: Boolean read FDropDownAutoWidth write FDropDownAutoWidth default true;
Published property DropDownMaxWidth: integer read FDropDownMaxWidth write FDropDownMaxWidth default 600;
Published property DisplayedItems: TDisplayedItems read FDisplayedItems write FDisplayedItems;
Published property OnGetListItemProps: TGetListItemProps read FGetListItemProps write FGetListItemProps;
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;

Description

Methods

Public procedure ResetTimer(SetActive, CallEventNow: Boolean);

reset after change timer

Public procedure AddTextToItems(AText: string = '');
 

Properties

Public property ScaleRatio: double read FScaleRatio;

define actual scale ratio relative to original designed size

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

define whether drop down width is set according maximal item width

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

define maximal width if DropDownAutoWidth is used

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 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


Generated by PasDoc 0.13.0 on 2018-07-13 22:00:06