Sample Components

In this section, we will take a detailed look into several VCL components that have been transformed into CLX components. The first one is a custom spinner component that involves several principle features including custom painting, keyboard handling, focus changes, mouse interactions, and even custom events.

The next three components are successive descendants of the base spinner component—each extending the previous component. The first descendant extends the base spinner by adding support for handling mouse events at design time and displaying custom cursors. The second spinner descendant adds support for displaying images from an ImageList. The final spinner component adds support for connecting the control to a field in ...

Get Borland® Delphi™ 6 Developer's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.