掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
CreateしたMemoに書き込めない (ID:21903)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
いきなり複雑なものをコーディングしてデバッグするより、 シンプルなものを完成させつつ、複雑にして行くのがいいかと思います。 var ScoreBox : TMemo; procedure TForm1.Button2Click(Sender: TObject); begin /// MemoをCreate // for i := 1 to nStudent do begin ScoreBox := TMemo.Create(self); // 寿命の管理 with ScoreBox do begin height:=120; width:=250; //enabled:=true; alignment:=taCenter; Left := 0; // Top := i * 14; tag:=i; Parent :=form1;//.pnlClass; // どのコンポーネント上に配置するか。 //font.color:=rgb(0,0,0); // text:='AAAA'; end; // end; end; procedure TForm1.Button1Click(Sender: TObject); begin ScoreBox.text:='225'; end;
←解決時は質問者本人がここをチェックしてください。
更新する
戻る
掲示板システム
Copyright 2021 Takeshi Okamoto All Rights Reserved.