تغيير الوان shapeضمن التايمر
#2
دلفي xe2

كود :
unit Unit15; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ExtCtrls; type TForm15 = class(TForm) Shape1: TShape; Timer1: TTimer; procedure Timer1Timer(Sender: TObject); private { Private declarations } public { Public declarations } end; var Form15: TForm15; c : array [1..4] of Tcolor = (clred,clblue,clgreen,clwhite); i : integer=1; implementation {$R *.dfm} procedure TForm15.Timer1Timer(Sender: TObject); begin shape1.Brush.Color:=c[i]; i:=i+1; if i=5 then i:=1; end; end.
الرد


الردود في هذا الموضوع
تغيير الوان shapeضمن التايمر - بواسطة karika2 - 01-04-2015, 01:42 PM
تغيير الوان shapeضمن التايمر - بواسطة Anew - 01-04-2015, 05:24 PM
تغيير الوان shapeضمن التايمر - بواسطة Anew - 01-04-2015, 05:28 PM
تغيير الوان shapeضمن التايمر - بواسطة S.FATEH - 01-04-2015, 07:21 PM
تغيير الوان shapeضمن التايمر - بواسطة S.FATEH - 02-04-2015, 06:14 PM
تغيير الوان shapeضمن التايمر - بواسطة الكاسر الآخر - 30-03-2015, 04:19 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم