c++ - how to write a function Click() for dynamic created button? -
Trying to write a simple VCL program for educating purposes (dynamically form, control etc.) ). There is such a sample code: click __fastcall TForm1 :: button 1 (torque * sender) {TForm * formQuiz = new TForm (this); FormQuiz-> BorderIcons = TBorderIcons () & lt; & Lt; By System Menu & gt; & Gt; BiMinimize & gt; & Gt; BiMaximize; FormQuiz- & gt; Position = TPosition :: poDesktopCenter; FormQuiz- & gt; Width = 250; FormQuiz- & gt; Height = 250; FormQuiz- & gt; Visible = true; Teeton * BTNDAK.Tobin = New Tibetan (Form Conservancy); BtnDecToBin- & gt; Mother = form quasue; BtnDecToBin- & gt; Left = 88; BtnDecToBin- & gt; Top = 28; BtnDecToBin- & gt; Caption = "Dec to bin"; BtnDecToBin- & gt; Visible = true; } I wonder how I can write a function for a dynamic button, so it will be called when the button is clicked. In this example I click 'btnDecToBin-> ();' Funk but I do not know where I should p...