
XLists.pas unit
This unit contains definition of XListView control, which is similar
to TListBox in VCL, and add-ons for it.
XListView is derived from XCustomGrid and is presenting the one-column grid
with strings (it can become owner-drawn by assigning the event handler for OnPaintItem
event).
Following add-ons are possible to use with XListView:
- XListMouseSelect (calling UseListMouseSelect)
- to positioning and select items using mouse;
- XListKeySelect (call UseListKeySelect)
- to do the same using keyboard;
- XListEdit - (call UseListEdit) to
edit XListView string items (using keyboard/mouse);
XListView
XListView properties:
- Align : XAlign;
- Color : XColor;
- ItemIndex : Integer;
- ItemHeight : Integer;
- TopItem : Integer;
- Font : XFont;
- VisibleItems : Integer;
- PageItems : Integer;
- ShowHorizontalLines : Boolean;
- SelColor : XColor;
- SelTextColor : XColor;
- SelStart : Integer;
- SelCount : Integer;
- MultiSelect : Boolean;
- ReadOnly : Boolean;
- HScrollVisibility : XScrollVisibility
( =( svAuto, svNone, svAlways ) );
- VScrollVisibility : XScrollVisibility;
HScroll : XScrollbar;
VScroll : XScrollbar;
XListView methods:
- function MouseToItem(
Mouse : TPoint ) : Integer;
- function ItemRect(
Row : Integer ) : TRect;
XListView events:
- OnPaintItem : XOnPaintItem
(= procedure( Sender : TObject; Canvas : XCanvas; Idx :
Integer; Rect : TRect ) of object);
goto XCL page
goto home
page