TAdvOutlookList: Outlook style list view control

View-контрол в стиле Outlook

Feature overview:

- Outlook style list view control
- Built-in automatic grouping on columns
- Automatic sorting with sorting for text, numeric, date, checkbox, custom ... type columns
- Possibility to show a column in a preview pane
- Drag & drop between groups in the control or between multiple AdvOutlookList components
- Various column styles including checkbox, image, progresss bar, hyperlink, HTML text
- HTML rendering with images, hyperlinks of text in columns (see mini HTML documentation for information about all possibilities)

in v1.3
- New: property HideSelection to control display of selection when control has no focus.
- New: property GroupColumnDisplay to control display of grouped columns
- New: functions ItemAtXY, GroupAtXY
- New: VCL drag & drop support added in addition OLE drag & drop + new demo
- New: GroupImageIndex to set image for grouped column
- New: Lookup for direct or incremental keyboard lookup in a selected column
- New: SelectionOptions property to control multiselect & right click select

Tips:

1. Adding an item to a  group

  // add something in the first group
  with AddItem(Groups[0]) do
  begin
    Add('633669');
   
Add(datetostr(now+1));
   
Add('Development TPlanner/TDBPlanner');
 
end
;

2. Programmatically changing an item's text in a group

  with AdvOutlookList1 do
  begin
    // this changes column 0 & 1 text of item 1 in group 0
    Groups[0].ChildItem[1].Strings[0] := '111111';
   
Groups[0].ChildItem[1].Strings[1] := datetostr(now);
   
Invalidate;
 
end;

3. Inserting a new child item at a position in a group

  with AdvOutlookList1.Groups[0].InsertChild(1) do
  begin
    // this inserts a new item in the first group after the first item
    Add('52256');
   
Add(DateToStr(now-4));
   
Add('Update website');
 
end
;

4. Programmatically changing a group node state

  AdvOutlookList1.Groups[0].Expanded
:= false;



Опубликовал admin
25 Апр, Вторник 2006г.



Программирование для чайников.