Summary

   

This chapter's aim was to cover the main concerns and techniques associated with the development of a component's design time interface.

Creating property and component editors can be tricky, and many of the methods required can easily be misunderstood. But, when you understand how to override important methods of TPropertyEditor in your custom property editor class, you can create property editors that can handle any level of complexity. These include GetAttributes() , GetValue() , SetValue() , and Edit() .

The same is true for ComponentEditors , where overriding GetVerbCount() , GetVerb() , PrepareItem() , ExecuteVerb() , Edit() , EditProperty() , and Copy() enables you to provide the necessary information to the IDE, so it can support the design time needs of component editing.

The ability to create property and component editors makes it possible for you to create components that are easy to use, even when they are complex.


   
Top


C++ Builder Developers Guide
C++Builder 5 Developers Guide
ISBN: 0672319721
EAN: 2147483647
Year: 2002
Pages: 253

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net