Class TrComboBoxEx

Unit

Declaration

type TrComboBoxEx = class(TComboBox)

Description

enhanced TComboBox component which provides additional item properties and 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 = '');
Public procedure RemoveTextFromItems(AText: string = '');

Properties

Public property ScaleRatio: double read FScaleRatio;
Public property SelectedText: string read GetSelectedText;
Public property JustClosed: boolean read FJustClosed;
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;
Published property ItemHeightEx: integer read FItemHeightEx write SetItemHeightEx default cComboBoxItemHeightDefault;

Description

Methods

Public procedure ResetTimer(SetActive, CallEventNow: Boolean);

reset after change timer

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

add active od specified text to Items

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

remove active od specified text from Items

Properties

Public property ScaleRatio: double read FScaleRatio;

define actual scale ratio relative to original designed size

Public property SelectedText: string read GetSelectedText;

return seleced items as text

Public property JustClosed: boolean read FJustClosed;
 
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

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

define item height for fixed draw before scaling


Generated by PasDoc 0.15.0.