JVCL Help:TJvCustomInspector.AddComponent

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Adds an object to the inspector.


Pascal

 procedureAddComponent(Instance: TObject; constCategoryName: string = ; Expanded: Boolean = True);


Parameters

Parameters Description
Instance: TObject Instance to be added to the inspector.
const CategoryName: string = Name of the category to create. If no name is given, no category will be created and the object will be added to the root.
Expanded: Boolean = True Specifies whether the newly created category should be expanded when the object is added. When set to True the category will be expanded. If no category is created (because CategoryName is an empty string) the parameter will be ignored.


Description

AddComponent will add the published properties of an object to the inspector. If the CategoryName parameter is an empty string, the properties are added to the root of the inspector, otherwise a new category is created and the properties are added to that category. The Expanded parameter is only used if CategoryName is a non-empty string and determines if the new category should be expanded.


See Also

TJvInspectorPropData.New


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page