IDE error: cannot insert TToolButton into constructor

In Delphi 10.1 IDE, create a VCL application. Then paste TToolBar

into the form. Then create a new one TToolButton

in the toolbar. Then click the button to the clipboard. Then select the toolbar. Then try Paste Button from Clipboard to Toolbar. An error message is displayed:

enter image description here

This is weird as I assume that any control that has been copied from a container can be pasted back into the same container.

Is this a bug and can this error be avoided?

+3


source to share





All Articles