Delphi - plugin / IDE extension for copying / moving components and related events code between blocks

Is there an extension that allows me to copy or move components between units / forms, including all the code assigned to their events? For example ... a TButton with some code in its OnClick event, it should copy both the component and the code into the event.

edit: fixed "it" / "it", incorrectly changed by the mod that edited my question text.

+4
source share
1 answer

As an option: if your code is really independent of the form, create a data module, place a TActionList on it, add a data block to the uses clause, assign actions to the Action property of the control (in this case, you can simply copy the control from one form to another) or calling this action from an event (in this case you need to edit the code, but the event handler will contain only one line of code)

0
source

All Articles