Please enable JavaScript to view this site.

A-Shell Development History

1261.0.1

GDI printing refinement: //TEXTRECTANGLE (syntax one, with multiple lines) now adds an ellipsis "..." to the right of the last line in the case where the last visible line is not truncated, but there are additional lines of text (with hard line breaks) that did not fit into the box. Previously, the ellipsis only appeared when the text was being wrapped to fit.

1261.0.2

GDI printing refinement/new feature: One shortcoming of the //TEXTRECTANGLE (syntax one) logic was that it will start a new line of text as long as the starting point is above the bottom of the rectangle. But in the typical alignment, the starting point is at the upper left corner of the text cell, allowing the last line of text to straddle the bottom of the rectangle. Developers may have worked around this problem by drawing the border of the //RECTANGLE below the specified bottom of the //TEXTRECTANGLE.

A cleaner approach (assuming you don't want to switch all your text alignment to use TA_BOTTOM) is now to set the new option:

//SETOPTION,TEXTRECT-CONSERVATIVE-VERT

which effectively moves the threshold point (used to decide whether another line will fit in the rectangle) up by the current vertical line spacing. This way, you can use the same coordinates for the //TEXTRECTANGLE as for the //RECTANGLE.

1261.0.3

GDI printing enhancement: Another new //SETOPTION flag allows you to disable wrap within //TEXTRECTANGLE (syntax one):

//SETOPTION,TEXTRECT-NOWRAP

This may be useful in situations where you have multiple lines of text that already have hard line breaks and and you would prefer to truncate the lines that are too long rather than cause a wrap and end up losing some of the text at the bottom.

Note that this effect has long been available with //TEXTRECTANGLE syntax two, simply by omitting the TRF_WORDBREAK option.