Tokens > Layout Tokens >

[BoxFit] : Box Re-Sizing to eliminate Text Overflow (deprecated)

Return to Introduction  Previous page  Next page  

Note that, as of May 30th 2005, the use of this token is deprecated. The functionality described below for this token will remain available for the foreseeable future, but we recommend that you use the new version of this token which is more powerful and is the only one which will be improved in the future.

 

The [BoxFit] token is used to tell Q++ to increase the size of a textbox by a certain amount, repeatedly until there is no more text overflow. The syntax is :

 

[BoxFit:uX1:dX2:lX3:rX4]

 

where the values X1-X4 correspond to the amount to increase the box by, up down left and right, respectively. For example, [BoxFit:d14.4] would increase the box downwards repeatedly by 14.4pts until there is no more text overflow.

 

Some important points :

 

You do not need to put all 4 directions, but you must put at least one.

 

If you specify more than 1 direction, then Q++ will only verify that text overflow has been removed after it has performed the increase for all directions specified.

 

Units of measurement are points.

 

You can use either a period or a comma as decimal separator.

 

Although you do not need to use a DayValue, internally Q++ will assume the DayValue to be 1 if there is no DavValue specified in the token. Therefore, you might want to always specify a DayValue corresponding to the lowest valued DayValue of the page on which the textbox is (the same way as you do for DayValue Marker tokens).

 

The position of this token in a textbox is not important, but we suggest you always place it at the beginning of a textbox, to make it easier later to see which boxes are using such tokens.

 

This token is particularly useful for tokens that may convert to text that spans multiple lines, particularly if this text has a leading that is different from the space between lines behind the text, as shown in the example below.

 

 

In the above example, the textbox containing the token was made non-transparent, with a White background color, so that the expanding box would hide more and more lines, as it expanded.


Topic updated on 28-May-05
Topic URL: http://www.qppsupport.net/webhelp/index.html?boxfitboxre_sizing.htm