Invoking TCollection's run time editor

Please discuss general Delphi programming topics here.

Invoking TCollection's run time editor

Postby lexdean » July 16th, 2012, 1:30 am

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.
Attachments
UComponentEdit.pas
(5.64 KiB) Downloaded 134 times
lexdean
Active Member
Active Member
 
Posts: 16
Joined: May 25th, 2011, 12:04 am

Re: Invoking TCollection's run time editor

Postby lexdean » July 19th, 2012, 11:09 pm

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.
Attachments
LexColumnCollection.pas
(3.95 KiB) Downloaded 161 times
lexdean
Active Member
Active Member
 
Posts: 16
Joined: May 25th, 2011, 12:04 am

Re: Invoking TCollection's run time editor

Postby Kambiz » July 23rd, 2012, 9:14 pm

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm

Re: Invoking TCollection's run time editor

Postby lexdean » July 29th, 2012, 10:47 pm

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.
lexdean
Active Member
Active Member
 
Posts: 16
Joined: May 25th, 2011, 12:04 am

Re: Invoking TCollection's run time editor

Postby Kambiz » July 31st, 2012, 10:28 am

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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2429
Joined: March 7th, 2003, 7:10 pm


Return to Delphi Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron