Writing Property Editors

Chapter 11, “VCL Component Building,” shows how properties are edited in the Object Inspector for most of the common property types. The means by which a property is edited is determined by its property editor. Several predefined property editors are used for the existing properties. However, there might be a situation in which none of the predefined editors meet your needs, such as when you've created a custom property. Given this situation, you'll need to create your own editor for that property.

You can edit properties in the Object Inspector in two ways. One is to allow the user to edit the value as a text string. The other is to use a dialog that performs the editing of the property. In some cases, you'll want to ...

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

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.