Page 1 of 1
Invoking TCollection's run time editor

Posted:
July 16th, 2012, 1:30 am
by lexdean
I have been following the TDBGrid object because I'm wanting to install it on the columns TGrid but in a different setup
The example TDBGrid uses a complex TCollection create descendant that I do not understand its purpose
Has anyone done anything like this and have advice please?
p.s.
I have done something’s with my grid component like XP style scrollbars to make it into what I want and want to create better selection event to the current one.
Re: Invoking TCollection's run time editor

Posted:
July 19th, 2012, 11:09 pm
by lexdean
I have got this working but I do not know how to show the design time editor by double clicking on the main component.
Can any one fill in that bit please.
Re: Invoking TCollection's run time editor

Posted:
July 23rd, 2012, 9:14 pm
by Kambiz
Since Delphi 6 (or maybe 7), design-time and run-time codes must be in separate packages, because the design-time packages are only available in IDE. Therefore, because collection editor is in a design-time package, you cannot use it at your code.
Re: Invoking TCollection's run time editor

Posted:
July 29th, 2012, 10:47 pm
by lexdean
yes I agree
the design time editor for TCollection is in Delphi some were
I just need to access it
because Delphi has no registration details in their example code (professional)
I cannot find it.
do you know someone that would know where to find the standard design time editor for TCollection
and how to register it like TlistView so I can double click on the VCL and display the editor.
Re: Invoking TCollection's run time editor

Posted:
July 31st, 2012, 10:28 am
by Kambiz
TCollection editor is a property editor that depends on property editors of the other data types. However, if your collection is limited to a small set of data types, it wouldn't e difficult to write your own runtime editor.
You can find source code of TCollection editor on Delphi's VCL source directory. Studying it is a good start to write something similar for your own project.