temp:Array[1..100]of TOleContainer; i:integer; begin showole:=not showole; //是否浏览 table1.First; i:=0; while not table1.eof do begin i:=i+1; if showole=true then begin temp[i]:=TOleContainer.Create(self); //动态创建OLE控件 temp[i].parent:=form1; temp[i].width:=200; //设置每个动态生成的OLE控件的大小、位置 temp[i].height:=25; temp[i].left:=DBGrid1.Left-200; temp[i].top:=temp[i].Height*(i-1)+DBGrid1.Top+20; if(table1ole.AsString='1') then //若含特殊字符 begin table1new.SaveToFile('tempole.nnn');//取字段内容,保存为临时文件 temp[i].LoadFromFile('tempole.nnn'); //将内容调入到动态生成的OLE控件中 end ...
jb99334(小李飞刀) 你这种方法在有一般的form中是可以的可是在 DLL中是不创建的,提示说'contorl has no parent window' 可能真的很难了?????????????????????????????????
...
你这种方法在有一般的form中是可以的可是在
DLL中是不创建的,提示说'contorl has no parent window'
可能真的很难了?????????????????????????????????