IMPORTANT ANNOUNCEMENT

These forums were permanently set to read-only mode on July 20, 2022. From that day onwards, no new posting or comment is allowed on the site, but the historical content remains intact and searchable.

A new location for posting questions about PlanetPress Suite is now available:

OL Learn - PlanetPress Classic (opens in new tab)

Topic Options
#20051 - 09/19/06 04:32 PM Snapping together groups
bshirley Offline
Junior Member

Registered: 09/19/06
Posts: 1
I am having trouble snapping two groups of objects together. The vertical size of the group of objects above changes due to conditions, and I would like to have the group of objects below snap to the bottom of the upper group. However, the location of the bottom group seems to have no correlation with the bottom of the group above whatsoever. When the size of the upper group changes, the lower group stays in the same place (and even overlaps the upper group in most cases).

Top
#20052 - 09/20/06 11:55 AM Re: Snapping together groups
Raphael Lalonde Lefebvre Offline
OL Expert

Registered: 10/14/05
Posts: 4956
Loc: Objectif Lune Montreal
bshirley,

It may be better if you open a support issue, and upload your files on the website, so we can take a better look at your issue. Click on "Report an issue via the web" on the top-left of this page, and open an issue. Then, upload your form, so we can take a look at it, and see what the problem is.

Regards,
Rapha

Top
#20053 - 09/22/06 09:39 AM Re: Snapping together groups
Anonymous
Unregistered


Snapping points for groups which have variable width or height may indeed produce this behavior.
The best solution is probably to set the snapping point of the group above to the top-left corner, and the "Snap to previous object" point of the group below to the top-left corner also, and use the "Vertical offset" property accessible from the same interface for the group below in order to manipulate the spacing between the two groups. This property will be set to a global variable which dynamically calculates the total height of the group above.

Thanks,

Pierre P

Top
#20054 - 06/12/07 03:18 AM Re: Snapping together groups
Lukas Bergman Offline
Junior Member

Registered: 06/11/07
Posts: 2
Loc: Almere, Netherlands
I am having similar problems but with ordinare text fields and Data selections (grouped together and using snapping points). I would like to create a header in the data when a value changes to the next. I have made such a thing but I seem to be unable to get the hight of the header to change properly and the space inbetween the records where this header is not show (through conditions) is not reduced or even used by the records show. The header I have put in seems to be remain there just not visible. Changind the height of this group to reduce the space taken seems to have no effect (eventhough the variable used for the height of the group or its members changes properly).

Now I understand it might be done by not grouping everything and making all objects PPTalk objects and calculate the positions of all the objects individually but I would like to try that only as a last resort due to the amount of work.

Anybody has any ideas on this?

Top
#20055 - 06/19/07 08:11 AM Re: Snapping together groups
Lukas Bergman Offline
Junior Member

Registered: 06/11/07
Posts: 2
Loc: Almere, Netherlands
Allright, with the help from our PlanetPress contact the solution was rather easy.

The idea is that when one of the groups that is repeated is done you store the height of this group. Since this is variable and unknown up front this is needed smile

When starting the next group make a call to a function that, on the basis of the height of the previous group, calculates "Space repeat line vertical" so that the group is positioned snugly under the previous group. All you then need to know is what kind of offset to use when to make the function calculate it's new position correctly smile

This does not use snapping in any way though smile But it works like a charm smile

Top


Moderator:  cosimo, OL Newsgroup Support