Unit Ilb |
================================================================================== TILB INDENTED LISTBOX COMPONENT V 1.3 Feb-97 By Santiago Portela: sportela@cece.es Please feel free to copy, modify or distribute this component ================================================================================== This component displays multiline items in a list box. Changes to version 1.2 Oct-96: - Supported linebreak char: '\' . Any line containing '\' will be splitted - New Font2 property instead of style&color - Component Name is changed to TILB, to allow using previous version ================================================================================= TlistBox Descendant. 5 new properties: indent PosIndent DrawLines DrawLineColor FontHeader indent property inone wraps each item to the number of lines required. itab split each line where '|' (#124) is found. First part is displayed aligned to the leftmost part of the component; second part is displayed left aligned to the indent position (the indent position is set in property PosIndent). Text is wrapped to the number of lines required. iline Same as itab, but instead of spliting vertically the component, first part is displayed in first line and second part in the following lines. Default is inone PosIndent property integer Used only when Indent is itab. PosIndent is the position (in pixels) inside the control where second part of itms are left aligned. Default is 48 DrawLines property boolean Used with itab, iline. If TRUE, a line is drawed below each item. DrawLineColor property Tcolor Color of lines if DrawLine is TRUE. FontHeader property Font for first part *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* *BUGS* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 1.If component's font is changed, please refill items list, otherwise the height of lines is still calculated upon previous font. 2.VERY CAREFULL setting width too small. Component may hang up. ==================================================================================
Classes |
TILB -
Functions |
Register - clear the rectangle
Types |
Constants |
Variables |
Functions |
Types |
TEnumType = (inone,itab,iline);
Constants |
Variables |