JVCL Help:TJvCustomListBox
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvCustomListBox Class
[+] JvListBox.pas Classes
[+] TJvCustomListBox Events
[+] TJvCustomListBox Methods
[+] TJvCustomListBox Properties
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvCustomListBox
TJvListBox
run\JvListBox.pas
Summary
Base class from which all enhanced list box controls are derived.
Pascal
run\JvListBox.pas
TJvCustomListBox = class(TJvExCustomListBox);
Description
TJvCustomListBox encapsulates new behavior common to all enhanced list boxes by introducing methods and properties that provide ability to:
- Align the strings in the list box.
- Display a string on more than one row.
- Searching for items by prefix, sub-string or by exact match, optionally case-sensitive.
- Alter the selection in various ways.
- Specify the horizontally scrollable width of the list box.
- Respond when the user scrolls the list box horizontally or vertically.
- Display a background image.
- Provider-aware.
Provider awarenessProvider-awareness for this control is done in the same way as for other provider-aware controls: a Provider property is added.
When a provider is selected, the component behaves slightly different from the normal case:
- If the Style property is not set to an owner draw style, the list box is created as a variable height list box (i.e. only lbOwnerDrawFixed results in a fixed height list box).
- If the Style property is set to an owner draw style and the OnMeasureItem or OnDrawItem events are assigned, these events will execute in favor of the provider based measuring/rendering. In all other cases, the provider based measuring/rendering will be used.
Do not create instances of TJvCustomListBox. Use TJvCustomListBox as a base class when declaring list boxes, that will use the new behavior introduced in TJvCustomListBox.
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page