Class TDisplayedItems

Unit

Declaration

type TDisplayedItems = class(TPersistent)

Description

dropdown items properties used for TrComboBoxEx and TrDBComboBox

Hierarchy

  • TPersistent
  • TDisplayedItems

Overview

Methods

Public function GetMaxItemWidth(DropDownCount: integer): integer;
Public procedure DrawListItem(Index: integer; State: TOwnerDrawState; Rect: TRect; GetListItemProps: TGetListItemProps);

Properties

Published property ListItems: TStrings read FListItems write SetDisplayedItems;
Published property AddItemAsFirstColumn: Boolean read FAddItemAsFirstColumn write SetAddItemAsFirstColumn default false;
Published property ColumnSeparator: string read FColumnSeparator write SetColumnSeparator;
Published property DrawColumnLine: Boolean read FDrawColumnLine write FDrawColumnLine default true;

Description

Methods

Public function GetMaxItemWidth(DropDownCount: integer): integer;

return maximal width of all items

Public procedure DrawListItem(Index: integer; State: TOwnerDrawState; Rect: TRect; GetListItemProps: TGetListItemProps);

draw one item of combo dropdown

Properties

Published property ListItems: TStrings read FListItems write SetDisplayedItems;

define additional items text

Published property AddItemAsFirstColumn: Boolean read FAddItemAsFirstColumn write SetAddItemAsFirstColumn default false;

define whether ListItem is shown at begining

Published property ColumnSeparator: string read FColumnSeparator write SetColumnSeparator;

define separator used in ListItem

Published property DrawColumnLine: Boolean read FDrawColumnLine write FDrawColumnLine default true;

define whether column line is drawn


Generated by PasDoc 0.15.0.