2021年3月24日星期三

Delphi- copy a control and all properties at runtime

I use some software developed in Delphi and want to modify a form at runtime (not in an IDE).

I know how to add fields to a form and have them interact with the database. What I need to do is at runtime, copy an existing control (TDBText) to a new control. I can then modify that new control's position and datafield on the form.

The reason I need to do this is that one of the fields on the form displays data and is a hyperlink to open a webpage. I want to be able to replicate this functionality with a different field from the database.

The software only allows me to modify the FormShow and BtnOKClick, so this will happen in the FormShow procedure.

https://stackoverflow.com/questions/66791631/delphi-copy-a-control-and-all-properties-at-runtime March 25, 2021 at 09:06AM

没有评论:

发表评论