Recent

Author Topic: RTTIPropertyGrid expand  (Read 373 times)

ig

  • New Member
  • *
  • Posts: 12
RTTIPropertyGrid expand
« on: January 12, 2026, 10:47:03 am »
Does anyone have a in idea on how to automatically expand sub-classes (nested) in the TTIPropertyGrid?
I would like to show all properties at once to the user, also the nested ones.

Thx.

Platform: MS Windows 11
Lazarus: 4.4 with FPC 3.2.3


jamie

  • Hero Member
  • *****
  • Posts: 7516
Re: RTTIPropertyGrid expand
« Reply #1 on: January 13, 2026, 03:17:43 am »
Code: Pascal  [Select][+][-]
  1. Var
  2. Var
  3.   R:TOIPropertyGridRow;  
  4. Begin
  5. R:= TIPropertyGrid.GetRowByPath('Font.color'); //Just an example.
  6. End;
  7.  

 This took me a while to find this, there is no exposed function for this other than keyboard and above.

you need to specify the Property Name.A_Member of said property and it expands the list.

Good luck.

Jamie



The only true wisdom is knowing you know nothing

ig

  • New Member
  • *
  • Posts: 12
Re: RTTIPropertyGrid expand
« Reply #2 on: January 17, 2026, 09:11:09 am »
Thank you, works like a charm.

 

TinyPortal © 2005-2018