troubleshooting Question

TCollection Copy Item

Avatar of LMuadDIb
LMuadDIbFlag for United States of America asked on
Delphi
5 Comments1 Solution536 ViewsLast Modified:
hey all
I created this component which uses a TCollection, and it has alot of published properties but I want to be able to COPY a collection item instead of just ADDing an item and then adjusting all the properties manually from the delphi's Object Treeview/Object Inspecter. The defaults are fine, just the tweaking for each item can be a pain.

I want to add a menu item(s) which allows you to Add Item, Copy Item, Paste Item from the Object Treeview or when the component is right-clicked on a form. And I know I have to create a component editor to do that, but I have not been able to find any code that shows how I can actually "copy" or duplicate an item. Assign? I fooled around with it some, but got errors.

all the components ( statusbars, pagecontrols, etc...) I have seen only allow you to add/delete... nothing about copy/duplicate.

any help would be appreciated.
Paul
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros