PRINT, LOCATE, then PRINT Misaligned If TEXTSIZE Changed (45477)
This article was previously published under Q45477
SUMMARY
After you CALL TEXTSIZE to change the output text size, rows of
characters that you PRINT on the screen still align on the baseline
(pixel row) of the previously printed text size (as shown in Example 3
below). If you subsequently perform a LOCATE statement to change the
row position, PRINT rows using that position are misaligned vertically
by a few pixels compared to the previously PRINTed text (as shown in
Examples 1 and 2).
Thus, to avoid misalignment after CALL TEXTSIZE, you should always
invoke LOCATE before each PRINT if you plan to use LOCATE at all.
LOCATE recalculates the absolute print position (row and column) in a
window using the height and width of the character "0" (zero) in the
current text size and font.
This information applies to Microsoft QuickBASIC Version 1.00 for
Macintosh, the Microsoft BASIC Interpreter Versions 2.00, 2.10, and
3.00 for Macintosh, and the Microsoft BASIC Compiler Version 1.00 for
Macintosh.
Modification Type: |
Minor |
Last Reviewed: |
1/9/2003 |
Keywords: |
KB45477 |
|