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

ShiftRelative with Regions

edited December 2009 in General
Hello,
I have six Regions (with a few TppDBText/TppLabels controls inside) one
below another, linked by ShiftRelativeTo. Based on the values the TRegion
is visible or not visible. If the second Region is invisible the third
Region should be shown straight below the first Region and so on.

The first four Regions and the 6th are preexisting, the 5th is inserted
later at run time. Between the first five Regions all works fine. But the
6th Region looses the connection via ShiftRelativeTo every time. I can set
it at design time or run time, it loses the connection.

Before edit:
Region 1 - 2 - 3 - 4 - 6

After edit :
Regions 1 - 2 - 3 - 4 - 5(new) - 6

I checked all properties between the Regions and all looks fine but it
didn't work. How can I fix this?

Best regards,
Kai from Germany.

Comments

  • edited December 2009
    Hi Kai,

    When are you setting the ShiftRelativeTo property of the 6th region? Since
    you are creating the 5th region in code, you will need to do this in code
    after it has been created. Be sure you are setting the ShiftRelativeTo
    property of the 6th region after the 5th region has been created and that
    none of your other code will interfere with that assignment.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.