Difference between revisions of "TTIPropertyGrid"
From Lazarus wiki
Jump to navigationJump to searchLine 1: | Line 1: | ||
− | '''TIPropertyGrid''' belongs to the group of [[RTTI_tab|RTTI Controls]]. It acts like the object inspector in the Lazarus IDE: | + | '''TIPropertyGrid''' [[image:ttipropertygrid.png]] belongs to the group of [[RTTI_tab|RTTI Controls]]. It acts like the object inspector in the Lazarus IDE: |
* Simply drop it onto a form, maybe align it to the left side of the form (<tt>TIPropertyGrid1.Align := alLeft</tt>). | * Simply drop it onto a form, maybe align it to the left side of the form (<tt>TIPropertyGrid1.Align := alLeft</tt>). |
Latest revision as of 14:47, 5 October 2020
TIPropertyGrid belongs to the group of RTTI Controls. It acts like the object inspector in the Lazarus IDE:
- Simply drop it onto a form, maybe align it to the left side of the form (TIPropertyGrid1.Align := alLeft).
- In property TIObject, select the name of the control for which the properties should be displayed. The combobox lists all controls accessible. Additionally, the form itself can be selected by typing TIPropertyGrid1.TIObject := self.
- Use the Filter property if some data types should be excluded. Setting TIPropertyGrid1.Filter := [tkClass], for example, lists only properties which are classes.
- The TIPropertyGrid not only diplays properties, it also allows to change them: Any value changed in the TIPropertyGrid is applied to the linked object.