Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switching Control Types (but not names) for Lots of Controls on a Form in Delphi

I need to switch every control of a particular type on a form to a different type while maintaining the name and the code associated with each control.

For example, let's say I need to switch a dozen or more TEdit fields to TSpinEdits. How can I do that in Delphi 2007 with minimal effort?

like image 303
Dave Avatar asked Nov 28 '22 12:11

Dave


1 Answers

Use the GExperts Replace Components expert. It's free, and is the only tool I've seen that does what you're asking, including mapping properties from the old component to the new one.

like image 72
Craig Stuntz Avatar answered Dec 15 '22 18:12

Craig Stuntz