RAD Studio
ContentsIndex
PreviousUpNext
Publishing the Pen and Brush

By default, a canvas has a thin black pen and a solid white brush. To let developers change the pen and brush, you must provide classes for them to manipulate at design time, then copy the classes into the canvas during painting. Classes such as an auxiliary pen or brush are called owned classes because the component owns them and is responsible for creating and destroying them. 

Managing owned classes requires:

  1. Declaring the class fields.
  2. Declaring the access properties.
  3. Initializing owned classes.
  4. Setting owned classes' properties.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!