I want to edit published property in the Object Inspector via dropdown list.
Let's say it's DataSet: TDataSet
.
I'm not started yet, but using this http://delphi.about.com/library/bluc/text/uc092501c.htm I will create a property editor and in GetValues
method I should do some job to find out which components, that are descendats of TDataSet
, are already on the Form that I'm designing now.
Yet didn't find any examples of it. How should I provide access to the current form inside my PropertyEditor.GetValues
method or there is another approach?
Why it is NOT this: How to create a component property that lists other components?
Because at certain times in a drop-down list should be listed components of two or more types. At last - I need to hold in the Property a pointer to certain component, which would be not the same type, as it is declared.
I repeat: Property: TClassNone
and shoud be listed there: TClassOne, TClassTwo and TClass Three
, which are not descendatns of TClassNone
.