//获取 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;
本文来自博客园,作者:del88,转载请注明原文链接:https://www.cnblogs.com/del88/archive/2011/12/13/2286709.html