Invoking TCollection's run time editor

Please discuss general Delphi programming topics here.

Invoking TCollection's run time editor

Postby lexdean » 16/07/12 01:30

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.
You do not have the required permissions to view the files attached to this post.
lexdean
Active Member
Active Member
 
Posts: 11
Joined: 25/05/11 00:04

Re: Invoking TCollection's run time editor

Postby lexdean » 19/07/12 23:09

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.
You do not have the required permissions to view the files attached to this post.
lexdean
Active Member
Active Member
 
Posts: 11
Joined: 25/05/11 00:04

Re: Invoking TCollection's run time editor

Postby Kambiz » 23/07/12 21:14

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: 2219
Joined: 07/03/03 19:10
Location: Franeker, The Netherlands

Re: Invoking TCollection's run time editor

Postby lexdean » 29/07/12 22:47

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: 11
Joined: 25/05/11 00:04

Re: Invoking TCollection's run time editor

Postby Kambiz » 31/07/12 10:28

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: 2219
Joined: 07/03/03 19:10
Location: Franeker, The Netherlands


Return to Delphi Programming

Who is online

Users browsing this forum: Bing [Bot] and 1 guest