Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

ShiftRelativeTo does not preserve spacing between components

I'm using ShiftRelativeTo, and it works in the sense that my lower memos move down to allow those above to grow. However, the spacing between the DBMemos is always the same. The report does not preserve the space between the DBMemos I defined in the UI.

What am I doing wrong?

Thanks

Comments

  • I found a way to do this. Insert a region with a square shape in it. Set the Square shape to the size of the space I want between DBMemos. Then set the square's Pen.Color=psClear. Also the region's Brush.Style=bsClear and Pen.Style=psClear.

    Last, set the DBMemo's to shift relative to the regions, and the regions to shift relative to the DBMemos.

    This seems like a very odd thing to have to do, but it works.
  • Hi Mike,

    Each "Stretchable" component contains a BottomOffset property which can be used to adjust the space between two shifting objects. Increasing this value should give you the effect you are after.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
Sign In or Register to comment.