Is it possible to move the location of the an AreaGroup after it is created?
My application will generate a seriese of AreaGroups, and needs to handle pagination. What do I do if the AreaGroup runs off of the page?
I tried to create a new page and reset the Y property of the Area Group object, but I got an error.
Is there any way of doing a Flow type layout so the developer doesn't need to worry about pagination?
John
AreaGroup
Re: AreaGroup
Support · Mar 15, 2006Hello John,
There is no way you can position an AreaGroup page element because it does not have the property to set its Y co-ordinate.
Some page elements do not imply an area, meaning they do not have a width or height property. Adding a non-area page element to a cell will not cause the row’s height to expand and the vertical and/or horizontal alignment may not behave as expected. AreaGroup is designed as a container to hold the area properties of elements that do not already have them implied.
To utilize AreaGroup, first set an AreaGroup to a cell defining its width and height. Then place any page elements that need area properties defined into that AreaGroup.
You might want to use the TransformationGroup page element. It will allow you to change the Y co-ordinate after it is created.
Are you using Tables, TextAreas or HtmlTextArea? They do have methods to take care of overflows and handle pagination.
Thanks,
ceTe Software Support Team
Re: AreaGroup
Forum member · Mar 15, 2006Thanks,
The TransformationGroup was a big help. I have another question about tables. I want to position some text right below a table, but I don't know the height of the table in advance.
In some cases, there might be wrapped text in a cell which will make the table bigger than it would otherwise be. This is hard to predict since the table if filled from a database.
How do I set a table to automatically grow to an arbitrary size, and then read the height from that table?
With that information I could set the label position to the Y value of the table plus the actual height.
John
Re: AreaGroup
Support · Mar 15, 2006Hello John,
The method that you will need to use is GetVisibleHeight(). This will return the exact height of the table on that page. Using the value returned from this method you can figure out the Y value to place your next Page Elelment on the page.
Thanks,
ceTe Software Support Team
Re: AreaGroup
Forum member · Mar 16, 2006Thanks for your help.
I downloaded the community edition for my testing and development, but it worked so well I just purchased a server license.
John