Rosi ComponentsUnits Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers |
Class TrHTMLListView
Unit
rHTMLListView
Declaration
type TrHTMLListView = class(TCustomListView)
Description
TrHTMLListView is enhanced ListView with multiline HTML text and definable size, colors and alignment of items
Hierarchy
- TCustomListView
- TrHTMLListView
Overview
Methods
 |
procedure InitLoadingItems(ClearItems: boolean = false); |
 |
function GetHTMLItem(ItemIndex: integer): TrHTMLListItem; |
 |
function AddHTMLItem(HTMLText, HintText: string; ImageIndex: integer = -1): TrHTMLListItem; |
 |
function AddHTMLItemData(HTMLText, HintText: string; ItemBitmap: TBitmap; ItemID, ItemVarData: variant; ItemObject: TObject): TrHTMLListItem; |
 |
procedure UpdateHTMLItem(ItemIndex: integer; HTMLText, HintText: string); |
 |
procedure UpdateHTMLItemData(ItemIndex: integer; ItemBitmap: TBitmap; ItemID, ItemVarData: variant; ItemObject: TObject); |
 |
procedure CompareEvent(Sender: TObject; Item1, Item2: TListItem; Data: integer; var Compare: integer); |
 |
procedure DrawFrame(ACanvas: TCanvas; var R: TRect; FrameType: TFrameType; aColor: TColor); |
 |
procedure DrawThemeBk(ACanvas: TCanvas; R: TRect; State: TCustomDrawState); |
 |
procedure LoadFileList(FilePath, FileMask: string; HtmlTextMask: string = ''; SortByFileName: boolean = false; LoadImages: boolean = false); |
 |
function LoadFileImages(LoadAllItems: boolean = false; LoadSelected: boolean = false): boolean; |
 |
procedure LoadDBList(Dataset: TDataset; KeyField, ImageField: TField; HtmlTextMask: string = ''; HintTextMask: string = ''; LoadImages: boolean = false); |
 |
function LoadDBImages(Dataset: TDataset; KeyField, ImageField: TField; LoadAllItems: boolean = false; LoadSelected: boolean = false): boolean; |
Properties
Description
Methods
 |
procedure InitLoadingItems(ClearItems: boolean = false); |
clear all items and init internal loading
|
 |
function GetHTMLItem(ItemIndex: integer): TrHTMLListItem; |
return item as TrHTMLListItem
|
 |
function AddHTMLItem(HTMLText, HintText: string; ImageIndex: integer = -1): TrHTMLListItem; |
add new item with defined text and hint
|
 |
function AddHTMLItemData(HTMLText, HintText: string; ItemBitmap: TBitmap; ItemID, ItemVarData: variant; ItemObject: TObject): TrHTMLListItem; |
add new item with defined text, hint and data
|
 |
procedure UpdateHTMLItem(ItemIndex: integer; HTMLText, HintText: string); |
update and refresh item text and hint
|
 |
procedure UpdateHTMLItemData(ItemIndex: integer; ItemBitmap: TBitmap; ItemID, ItemVarData: variant; ItemObject: TObject); |
update and refresh item bitmap and data
|
 |
procedure CompareEvent(Sender: TObject; Item1, Item2: TListItem; Data: integer; var Compare: integer); |
default compare according HTML text
|
 |
procedure DrawFrame(ACanvas: TCanvas; var R: TRect; FrameType: TFrameType; aColor: TColor); |
draw frame of defined type and color
|
 |
procedure DrawThemeBk(ACanvas: TCanvas; R: TRect; State: TCustomDrawState); |
draw standard theme background of item according state
|
 |
procedure LoadFileList(FilePath, FileMask: string; HtmlTextMask: string = ''; SortByFileName: boolean = false; LoadImages: boolean = false); |
add Items as file list from specified directory according file mask, set item text according HtmlTextFormat (<<File>> will be replaced by filename) set ItemID to file name including path
|
 |
function LoadFileImages(LoadAllItems: boolean = false; LoadSelected: boolean = false): boolean; |
add images for loaded file list, can be called repeatedly by timer or OnIdle event, set ItemVarData to string Width;Height return false if all items are loaded
|
 |
procedure LoadDBList(Dataset: TDataset; KeyField, ImageField: TField; HtmlTextMask: string = ''; HintTextMask: string = ''; LoadImages: boolean = false); |
load records from dataset, KeyField define key value for each record, set item text according HtmlTextMask (<<FieldName>> will be replaced by field value), set hint text according HintTextMask (<<FieldName>> will be replaced by field value), set ItemID to record key value
|
 |
function LoadDBImages(Dataset: TDataset; KeyField, ImageField: TField; LoadAllItems: boolean = false; LoadSelected: boolean = false): boolean; |
add images for loaded db records, can be called repeatedly by timer or OnIdle event, set ItemVarData to string Width;Height return false if all items are loaded
|
Properties
 |
property Action; |
|
 |
property Align; |
|
 |
property AllocBy; |
|
 |
property Anchors; |
|
 |
property BevelEdges; |
|
 |
property BevelInner; |
|
 |
property BevelOuter; |
|
 |
property BevelKind default bkNone; |
|
 |
property BevelWidth; |
|
 |
property BiDiMode; |
|
 |
property BorderStyle; |
|
 |
property BorderWidth; |
|
 |
property Color; |
property Checkboxes;
|
 |
property Columns; |
|
 |
property ColumnClick; |
|
 |
property Constraints; |
|
 |
property Ctl3D; |
|
 |
property DoubleBuffered; |
|
 |
property DragCursor; |
|
 |
property DragKind; |
|
 |
property DragMode; |
|
 |
property Enabled; |
|
 |
property Font; |
|
 |
property FlatScrollBars; |
|
 |
property FullDrag; |
|
 |
property GridLines; |
|
 |
property HideSelection; |
property Groups;
|
 |
property HotTrack; |
|
 |
property HotTrackStyles; |
|
 |
property HoverTime; |
|
 |
property IconOptions; |
|
 |
property Items; |
|
 |
property MultiSelect; |
property LargeImages;
|
 |
property OwnerData; |
|
 |
property OwnerDraw; |
|
 |
property ReadOnly default false; |
property GroupHeaderImages; property GroupView default False;
|
 |
property RowSelect; |
|
 |
property ParentBiDiMode; |
|
 |
property ParentColor default false; |
|
 |
property ParentDoubleBuffered; |
|
 |
property ParentFont; |
|
 |
property ParentShowHint; |
|
 |
property PopupMenu; |
|
 |
property ShowColumnHeaders; |
|
 |
property ShowWorkAreas; |
|
 |
property ShowHint; |
|
 |
property SortType; |
property SmallImages;
|
 |
property TabOrder; |
property StateImages;
|
 |
property TabStop default true; |
|
 |
property Touch; |
|
 |
property ViewStyle; |
|
 |
property Visible; |
|
 |
property OnAdvancedCustomDraw; |
|
 |
property OnAdvancedCustomDrawItem; |
|
 |
property OnAdvancedCustomDrawSubItem; |
|
 |
property OnChange; |
|
 |
property OnChanging; |
|
 |
property OnClick; |
|
 |
property OnColumnClick; |
|
 |
property OnColumnDragged; |
|
 |
property OnColumnRightClick; |
|
 |
property OnCompare; |
|
 |
property OnContextPopup; |
|
 |
property OnCustomDraw; |
|
 |
property OnCustomDrawItem; |
|
 |
property OnCustomDrawSubItem; |
|
 |
property OnCreateItemClass; |
|
 |
property OnData; |
|
 |
property OnDataFind; |
|
 |
property OnDataHint; |
|
 |
property OnDataStateChange; |
|
 |
property OnDblClick; |
|
 |
property OnDeletion; |
|
 |
property OnDrawItem; |
|
 |
property OnEdited; |
|
 |
property OnEditing; |
|
 |
property OnEndDock; |
|
 |
property OnEndDrag; |
|
 |
property OnEnter; |
|
 |
property OnExit; |
|
 |
property OnGesture; |
|
 |
property OnGetImageIndex; |
|
 |
property OnDragDrop; |
property OnGetSubItemImage;
|
 |
property OnDragOver; |
|
 |
property OnInfoTip; |
|
 |
property OnInsert; |
|
 |
property OnKeyDown; |
|
 |
property OnKeyPress; |
|
 |
property OnKeyUp; |
|
 |
property OnMouseActivate; |
|
 |
property OnMouseDown; |
|
 |
property OnMouseEnter; |
|
 |
property OnMouseLeave; |
|
 |
property OnMouseMove; |
|
 |
property OnMouseUp; |
|
 |
property OnResize; |
|
 |
property OnSelectItem; |
|
 |
property OnStartDock; |
property OnItemChecked;
|
 |
property OnStartDrag; |
|
 |
property ItemOptionsEx: TItemOptionsEx read FItemOptionsEx write FItemOptionsEx; |
defines all new Items design properties (size, colors, position)
|
 |
property OnGetItemParams: TLVGetItemParamsEvent read FOnGetItemParams write FOnGetItemParams; |
event is called to modify all design properties of item
|
 |
property OnGetItemContent: TLVGetItemContentEvent read FOnGetItemContent write FOnGetItemContent; |
event is called to modify text and image of item
|
 |
property OnCustomDrawHTMLItemEnd: TLVDrawHTMLItemEvent read FOnCustomDrawHTMLItemEnd write FOnCustomDrawHTMLItemEnd; |
event is called to add any custom drawing to item
|
 |
property OnClickItem: TLVClickItemEvent read FOnClickItem write FOnClickItem; |
event is called after click to any item
|
Generated by PasDoc 0.13.0 on 2016-10-19 12:19:01
|