Recent

Author Topic: How does the LookupRoot of the ThePropertyEditorHook work?  (Read 422 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1147
    • HowTos Considered Harmful?
How does the LookupRoot of the ThePropertyEditorHook work?
« on: October 18, 2024, 06:32:30 pm »
I've had a bit of a struggle in setting properties which are components at runtime, documented here and it all comes down to a relationship between TComponentPropertyEditor which is derived from TPersistentPropertyEditor and how they link with LookupRoot property of TPropertyEditorHook

My problem now is to include more components from the other forms and filter some components out. For instance if a component which is a TPanel derivative has a Panel property, is should be able to exclude its own self from the list of options in addition to other panels which don't fit the need.

Is there some way of setting some event that selects what you want and filters out those you don't want, like some own version of LookupRoot, TPersistentPropertyEditor?
Lazarus 3.0/FPC 3.2.2

 

TinyPortal © 2005-2018