كيف أفصل خيارات RadioGroup
#4
ghost-dz كتب :أرفق مثال هنا

مثال
كود :
procedure TForm1.Button1Click(Sender: TObject); begin if RadioGroup1.ItemIndex =0 then if StrToInt(Edit1.Text) in [0..100] then Edit1.Color := clGreen else Edit1.Color := clRed; if StrToInt(Edit1.Text) in [0..100] then begin Label2.Caption:='correcte'; Label2.Font.Color := clGreen; end else begin Label2.Caption:='incorrecte'; Label2.Font.Color := clRed; end; begin if RadioGroup1.ItemIndex =1 then if StrToInt(Edit1.Text) in [101..200] then Edit1.Color := clGreen else Edit1.Color := clRed; if StrToInt(Edit1.Text) in [101..200] then begin Label2.Caption:='correcte'; Label2.Font.Color := clGreen; end else begin Label2.Caption:='incorrecte'; Label2.Font.Color := clRed; end; begin if RadioGroup1.ItemIndex =2 then if StrToInt(Edit1.Text) in [201..255] then Edit1.Color := clGreen else Edit1.Color := clRed; if StrToInt(Edit1.Text) in [201..255] then begin Label2.Caption:='correcte'; Label2.Font.Color := clGreen; end else begin Label2.Caption:='incorrecte'; Label2.Font.Color := clRed; end; end; end; end; end.
الرد


الردود في هذا الموضوع
كيف أفصل خيارات RadioGroup - بواسطة Ramzi2 - 14-05-2015, 08:20 AM
كيف أفصل خيارات RadioGroup - بواسطة Agmcz - 14-05-2015, 03:18 PM
كيف أفصل خيارات RadioGroup - بواسطة Ramzi2 - 14-05-2015, 05:02 PM
كيف أفصل خيارات RadioGroup - بواسطة Ramzi2 - 14-05-2015, 05:22 PM
كيف أفصل خيارات RadioGroup - بواسطة rahiche - 14-05-2015, 06:29 PM

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


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