delphi的一个编程小问题 假如我在一个form1中创了2个RadioButton,RadioButton1和RadioButton2,还有一个button,我想要当选择RadioButton1时跳转到form2,选择RadioButton2时,跳转到form3,请问button的chick事件代码怎么写?我是初学者,谢谢大家指教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 在RadioButton事件中写就可以了,写那个Button事件干什么? if RadioButton1.Checked then 跳到FORM2;if RadioButton2.Checked then 跳到FORM3; 在click事件中填写procedure TForm1.RadioButton1Click(Sender: TObject);begin application.CreateForm(Tform3,form3);end;procedure TForm1.RadioButton2Click(Sender: TObject);begin application.Createform(tform2,form2); form2.ShowModal;end; 处理RadioButton的onclick事件with TFormX.Create(Owner) dobeign ShowModal; Destroy;end; 是的,和button 按钮没有关系,用不上的。只要写RadioButton的Onclick事件就好了。 Delphi 窗口置顶问题 BDS2006中,TIBClientDataset哪去了? 如何生成另外一个exe程序(愿以传奇木马原代码做酬谢) case xx of 自定义纸张打印问题,急,谢谢 我发现书上的例子在编译的时候电脑提示有错误?????????? 有笔记本的朋友 Delphi中ActionManager用法(麻烦举个实例) 计算机操作系统经典问题。 请问 TDateTimePicker 怎么用? [求助]使用ObjectFromLresult控制外部浏览器时问题 delphi下如何给JPG图片添加文字水印呢?
跳到FORM2;
if RadioButton2.Checked then
跳到FORM3;
procedure TForm1.RadioButton1Click(Sender: TObject);
begin
application.CreateForm(Tform3,form3);
end;procedure TForm1.RadioButton2Click(Sender: TObject);
begin
application.Createform(tform2,form2);
form2.ShowModal;
end;
beign
ShowModal;
Destroy;
end;
只要写RadioButton的Onclick事件就好了。