QB64 Phoenix Edition
Possible bug: Word-wrap oddity - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: Chatting and Socializing (https://qb64phoenix.com/forum/forumdisplay.php?fid=11)
+--- Forum: General Discussion (https://qb64phoenix.com/forum/forumdisplay.php?fid=2)
+--- Thread: Possible bug: Word-wrap oddity (/showthread.php?tid=331)

Pages: 1 2


RE: Possible bug: Word-wrap oddity - SMcNeill - 05-04-2022

Aye, you'd have to determine the size of your words via _PRINTWIDTH to know where to word wrap them, but the glitch I'm talking about is easy to see:

LOCATE y, 800 in your demo.  The screen is from 0 to 799.... 800 should toss an error as it's off-screen, but it doesn't.

LOCATE y, 0 should print at the absolute far left of a line, but it doesn't.  It tosses an error.

LOCATE and non-monospaced fonts are indexed base 1 instead of base 0, which they need to be to do things correctly.  I'll dig into it more over the next few days and see if I can't sort the issue out for us.  (And then I'll try and sort it out for PRINT in general, to boot after that.)  ;D


RE: Possible bug: Word-wrap oddity - Pete - 05-04-2022

@admin and @hanness



Something that might be of interest for printing max to the screen size: https://qb64phoenix.com/forum/showthread.php?tid=337&pid=1672#pid1672




Pete