A
anson
Unregistered / Unconfirmed
GUEST, unregistred user!
自动生成一批的TQRDBText和TQRLabel,在关闭窗口时成批删除,其中部分程序如下:
atext:=TQRdbtext.create(priWGF);
atext.parent:=DetailBand1;
with atextdo
begin
autostretch:=true;
left:=leftvalue;
top:=2;
autosize:=false;
width:=dataF.Tprint.fieldbyname('width').asinteger-2;
height:=DetailBand1.height;
alignment:=taCenter;
dataset:=dataf.Qprint;
datafield:=dataF.Tprint.fieldbyname('fieldname').asstring;
end;
// with alabeldo
alabel:=TQRLabel.create(priWGF);
alabel.parent:=ColumnHeaderBand1;
with alabeldo
begin
autostretch:=true;
left:=leftvalue;
top:=2;
autosize:=false;
width:=dataF.Tprint.fieldbyname('width').asinteger;
height:=ColumnHeaderBand1.height;
alignment:=taCenter;
caption:=''+dataF.Tprint.fieldbyname('displayname').asstring;
// caption:=inttostr(leftvalue);
end;
// with alabeldo
请各位高手指点。。。。
atext:=TQRdbtext.create(priWGF);
atext.parent:=DetailBand1;
with atextdo
begin
autostretch:=true;
left:=leftvalue;
top:=2;
autosize:=false;
width:=dataF.Tprint.fieldbyname('width').asinteger-2;
height:=DetailBand1.height;
alignment:=taCenter;
dataset:=dataf.Qprint;
datafield:=dataF.Tprint.fieldbyname('fieldname').asstring;
end;
// with alabeldo
alabel:=TQRLabel.create(priWGF);
alabel.parent:=ColumnHeaderBand1;
with alabeldo
begin
autostretch:=true;
left:=leftvalue;
top:=2;
autosize:=false;
width:=dataF.Tprint.fieldbyname('width').asinteger;
height:=ColumnHeaderBand1.height;
alignment:=taCenter;
caption:=''+dataF.Tprint.fieldbyname('displayname').asstring;
// caption:=inttostr(leftvalue);
end;
// with alabeldo
请各位高手指点。。。。