非常に基本的な C++ Builder の質問です。実行時に TButton を作成したいと考えています。次のコードで実行できると思っていましたが、フォームにボタンが表示されません。
__fastcall TForm2::TForm2(TComponent* Owner): TForm(Owner)
{
TButton* b = new TButton(this);
b->Height = 100;
b->Width = 100;
b->Left = 0;
b->Top = 0;
b->Caption = "Testing";
b->Visible = true;
b->Enabled = true;
}
助けてくれてありがとう!