Dynamical creation - positioning problem

edited October 2010 in FastReport 4.0
Hi,

The following works but..
FrRep := TFrxReport.Create(nil);

FrRep.clear;
Page := TfrxReportPage.Create(FrRep);
Page.CreateUniqueName;

Memo := TfrxMemoView.Create(Page);
Memo.CreateUniqueName;
Memo.Text := 'Test';
Memo.Height := 20;
Memo.Align := baWidth;

FrRep.ShowReport;

If I set the Memo.Align to anything else e.g. baLeft or baNone the text will dissapear.
The same is true if I don't set the Memo.Height to 20. Even at height of 18 will dissapear.

This is strange because if I use the Visual Designer a new memo is set to baNone and the height is 0,50. The same values won't work when doing it on the fly. Why?

Thank you in advance

Comments

  • gpigpi
    edited 10:09PM
    Hello,

    Use Memo.SetBounds instead of Memo.Height
  • edited 10:09PM
    gpi wrote: »
    Hello,

    Use Memo.SetBounds instead of Memo.Height

    Thank you very much, it works.

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.