这是判断子窗口是否存在如果不存在就创建字窗口如果存在就激活它。
第一次执行是没有错误码的,但是关闭了子窗口第二次执行就出现'abstract error'的错误。为什么会这样的, 请高手帮帮忙。!
if not Assigned(childform) then
begin
Application.createform(Tchildform,childform)
end
else
childform.BringToFront;
第一次执行是没有错误码的,但是关闭了子窗口第二次执行就出现'abstract error'的错误。为什么会这样的, 请高手帮帮忙。!
if not Assigned(childform) then
begin
Application.createform(Tchildform,childform)
end
else
childform.BringToFront;
解决方案 »
- DBGridEh在繁体系统下显示简体中文的问题!急!!!
- 怎么画这样的线呢?
- 请教:时间计算的问题?
- edit.text把2000显示成2,000怎么换回来?
- FastReport 中图表的问题?
- 兄弟看一下!
- ReportBuild乱码,急急急
- 怎样设置TChecklistbox为只读?不要灰掉的那种,要与平时一样,只不过无法改变check的状态。
- 如何索取www.cnsw.org的邀请码?
- 大家好,怎样才能在输入edit1所需内容后按右箭头键使输入焦点转到edit2框???
- 困扰了三天的问题,急!帮帮忙吧,高手。
- 请解决了clientdataset的filter中使用like过滤中文单汉字的高手进来解决一下
childform := TChildForm.Create(....)
这个...可是是Self(指这段代码的窗体本身)或nil或Application
我试过你的方法,但是会出错,不知道是不是我用了xpmenu控件,因为它转到了xpnuemu里的一个过
程。
SeaWave()
你的方法也有问题。一执行就出现在错误。
aiirii(ari)
要怎么样判断才准确啊。
for i:=0 to mainform.MDIChildCount-1 do
begin
if mainform.MDIChildren[i]=childform then
begin
childform.BringToFront;
exit;
end;
end;
Application.createform(Tchildform,childform);