JVCL Help:TJvCustomListBox

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvCustomListBox
TJvListBox
run\JvListBox.pas


Summary

Base class from which all enhanced list box controls are derived.

run\JvListBox.pas


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:

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.

run\JvListBox.pas


About

Navigation

run\JvListBox.pas



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