TfrxShapeView as a container

edited 2:26PM in FastReport 4.0
Hi, I have on my report TfrxShapeView which I would like to be a container.
Dynamicly in my code I create some other TfrxShapeView objects, which are suppose to be little squares:

[code]
var
shView: TfrxShapeView;
legend: TfrxShapeView;
lastTop: double;
begin
legend:=(frxReport.FindObject('legendShape') as TfrxShapeView); //this is my container

lastTop:=8.55;
while not ado.Eof do
begin
shView:=TfrxShapeView.Create(legend);
shView.CreateUniqueName;
shView.Shape:=skRectangle;
shView.Left:=1;
shView.Height:=0.50;
shView.Width:=0.60;
shView.Top:=lastTop+shView.Height + 0.1;
lastTop:=shView.Top;
ado.Next;
end;
end;
[/CODEBOX]

This doesn't work. Nothing shows up. What should I do?

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 2:26PM
    you must create the other shapes in the correct band(parent object) a shape view is not a parent object.

Leave a Comment