Lazarus 2.0.12
OS: MX Linux
Sorry for all the type errors ...
Several times I tried copy and paste controls, but due to what I experienced I rather add controls manually, which is time consuming...
Just doing it now.
So, when I copy a control, like a button23, captionn ot the new control goes up, button24, when I double click the old name is in inspector and the old procedure comes up: "TForm1.Button23Click(Sender: TObject);" with code. Then I do create an default event and the button23 procedure opens up again, in the type section button24 is listed, the procdure for button24 is not listed. The inspector shows button24 with no caption, because these buttons need to show no caption when running, however, I doubled this in code by writing "button24.caption ;= '';"
The inspector Event tab shows OnClick: Button23Click.
Now, I used to correct this as much as possible, but it does not work every time, so I delete the new button and create it new.
I'm lost for a solution, as the work becomes cumbersome. Maybe, because I put these buttons up without a caption?
Labels for example copy ok. So when I copy a button that has not caption in the inspector, but has a name provokes this behavior?
Also when copying the code of the control comes with it - that should not happen ....
Anyway, thanks for asking.
Klaus