如题 感谢大家了
解决方案 »
- 请问一个 "Invalid Pointer Operation"错误的问题,在窗体关闭时
- 请问在delphi6里面怎么生成exe文件才能在所有的机器上运行!
- 为什么RUN时报[Fatal Error] Required package 'frxcs6' not found这个错误?
- 有关构象方程
- 关于变量转换的问题
- 有用omega的来留个名
- 高分求代码,发了后立即给分
- DELPHI中镶嵌汇编的问题……
- 传统还是现代---面向对象与传统关系数据库
- 如何监控键盘按下了那个键,并将其显示在 Label 上 (程序非当前窗体)
- 续上一个贴子的问题,“动态创建的按钮,更改大小或位置使之不重启生效”
- 用Delphi开发的ISAPI如何在IIS7下配置运行?
i:integer;
begin
for i:=self.ComponentCount-1 downto 0 do
begin
if self.Components[i] is TRadioButton then
TRadioButton(self.Components[i]).Checked:=False;
end;
end;
i: integer;
begin
for i:=0 to self.ControlCount-1 do
begin
if Controls[i] is TRadioButton then
(Controls[i] as TRadioButton).Checked:= false;
end;
end;
i: integer;
begin
for i:=0 to self.ControlCount-1 do
begin
if Controls[i] is TRadioButton then
(Controls[i] as TRadioButton).Checked:= false;
end;
end;
怎么界面上选中的RadioButton还是没有变化呢? 我的那些RadioButton是放在GroupBox里面的
i,j,k: Integer;
begin
for i:=0 to self.ControlCount-1 do
begin
if Controls[i] is TGroupBox then
begin
for j:=0 to (Controls[i] as TGroupBox).ControlCount-1 do
begin
if (Controls[i] as TGroupBox).Controls[j] is TRadioButton then
begin
(((Controls[i] as TGroupBox).Controls[j]) as TRadioButton).Checked:=false;
// listbox1.Items.Add((Controls[i] as TGroupBox).Controls[j].Name);
end;
end;
end;
end;
end;
procedure TForm1.Button1Click(Sender: TObject);
var
i: integer;
j: integer;
begin
for i:=0 to GroupBox1.ControlCount-1 do
begin
if GroupBox1.Controls[i] is TRadioButton then
(GroupBox1.Controls[i] as TRadioButton).Checked:= false;
end;
end;