Page 1 of 1

Behaviour of "Fit" button in Census form

Posted: 02 Aug 2024 23:05
by Gary_G
I notice that the "Fit" button disappears when some fields in the Text area are adjusted to reflect the actual text of the source.
Can someone explain when the "Fit" button was designed to be used.
I would have thought that it would permit one to adjust the auto text table before and/or after the text had been "corrected".
This is because the edited text might be longer or shorter than the original.

Re: Behaviour of "Fit" button in Census form

Posted: 03 Aug 2024 05:12
by jbtapscott
As the Help states, "....use the Fit button to automatically reduce the main census grid to the narrowest column widths required. This will automatically also reduce the width of the auto-text version of the table too....".

Once you make changes within the Auto-text then the Fit button effectively becomes disabled as it it is the original grid that has been adjusted and not the auto-text result (other than as a by-product of the grid being changed). This is exactly the same behaviour as, for example, if you make a change within the auto-text window and then go back and, say, add another Individual to the grid - the latter does not get added in to the auto-text window unless you select the Auto button again and "rebuild" the auto-text result.

Re: Behaviour of "Fit" button in Census form

Posted: 03 Aug 2024 10:42
by NickWalker
Just to add to Brent's answer: the 'fit' is taking advantage of the auto-size facility within the grid control. There isn't a similar facility for tables within rich-text, so once you've made manual changes to the rich-text, the grid is no longer generating the auto-text. If you need to adjust the column widths in the rich-text due to manual edits, you can drag the column widths with mouse and left mouse button. However, possibly more usefully, you can hold down the shift key whilst dragging the column width and it only changes the column width of the cell and the whole table, rather than the size of the next column.

Re: Behaviour of "Fit" button in Census form

Posted: 03 Aug 2024 16:14
by Gary_G
Thanks, Brent and Nick. That explanation helps.