forma tıklayınca button oluşturma
Programlama0 Mesaj
●29 Görüntüleme
- ReadBull.net
- Programlama ve Yazılım
- Programlama
- forma tıklayınca button oluşturma
-
26-09-2019, 08:24:02Merhaba Arkadaşlar,delphi de bi program yazmaya calışıyorum ama hata veriyor cozemiyorum.formda fare ile herhangi bir yere tıklayınca button oluşturm olayı.yazdığım kodları ekliyorum: procedure TForm1.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin i:=1; x:=TButton.Create(Form1); x.Caption:='button'+inttostr(i); x.Top:=160+2*i; x.Height:=30+2*i; x.width:=30+2*i; x.Parent:=Form1; i:=i+1; end; ust var bloğuna da var Form1: TForm1; i:integer; x:TButton; yazdım,hata nerde bulamıyorum.yalnız acil sınava gireceğim şimdiden teşekkurler.... __________________