I just installed Embarcadero C++Builder 10.4 Community Edition. I created a new VCL-applcation and added some components TButton and TLabel to the form. To the button I added an OnClick event:
//---------------------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
Button1->Caption = "Hej!";
}
//---------------------------------------------------------------------------
When I delete the button in the designer, the generated code is not deleted. From Delphi 10.4 I know,that the generated code is removed.
Is this generally not working in C++Builder and do I need to remove the code manually? I also tried a FMX application, it does not work either.
Button1Clickprocedure when you delete the actual button in the designer. I have never seen such behavior, which is a good thing as you might have assigned the same procedure to other objects too. So yes, if you don't need that code anymore, you need to remove it yourself. - Tom Brunberg