Creating a Graphic Component
Go Up to Creating a graphic component Index
A graphic control is a simple kind of component. Because a purely graphic control never receives focus, it does not have or need its own window handle. Users can still manipulate the control with the mouse, but there is no keyboard interface.
The graphic control presented in the following topics is TShape, the shape component on the Additional page of the Tool palette. Although the component created is identical to the standard shape component, you need to call it something different to avoid duplicate identifiers. The following topics use the name TSampleShape and show you all the steps involved in creating the shape component: