TfrxShapeView as a container

edited 1:48AM 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 1:48AM
    you must create the other shapes in the correct band(parent object) a shape view is not a parent object.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.