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

2 dbmemo problem

edited November 2005 in General
I'm using 2 DBMemo, I need to ShiftWithParent and Strech in both memos

in the 2nd memo, when I set ShiftWithParent to True, the Strech changes to
False and vice-versa !

There's any way to fix that!? When first memo growths, the second need to
move down. Then when the 2nd memo growths, it needs to strech.

I will have to use imagination? Like an TppMemo concatenating both texts?
Should work, but then I cant use a Label with bold font style to identify
the 2nd memo.



any hint?

Thanks!



Delphi 6
RB 6.03
MSSQL 2000 & FB 1.5

Comments

  • edited November 2005
    Hi Feijo,

    You need to set the ShiftRelativeTo property of the second memo to reference
    the first memo. This should give you the effect you are after.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2005
    Hi Nico,


    Thanks for your help

    Your tip is close! I have an label between both memos, like that:


    memo 1
    label about memo 2
    memo 2


    when I set ShiftRelativeTo, the text shift to that:


    memo 1
    memo 2
    label about memo 2


    Label has ShiftWithParent, but I cant tell it who is his parent. Then he
    moves bellow memo 2, I need it to stay between memos
    Its possible?

    --
    baita abra?o
    Feij?


  • edited November 2005
    drop a regiion on the report and put the label on the region and set the
    ShiftReliave property of the 2nd memo and the region according to your
    needs.

    Ed Dressel
    Team DM
  • edited November 2005
    Fantastic!!!! Thanks?


This discussion has been closed.