//获取 RadioGroup 项目名称
procedure TForm1.RadioGroup1Click(Sender: TObject);
begin
  Text := RadioGroup1.Items[RadioGroup1.ItemIndex];
end;

//当点击 RadioGroup 中的第几个选项时...
procedure TForm1.RadioGroup1Click(Sender: TObject);
var
  str: string;
begin
  case RadioGroup1.ItemIndex of
    0: str := 'one';
    1: str := 'two';
    2: str := 'three';
    3: str := 'four';
  end;

  Text := str;
end;

 
posted on 2011-12-13 19:26  del88  阅读(9)  评论(0编辑  收藏  举报