QB64 Phoenix Edition
Need a Printer/Tester - Printable Version

+- QB64 Phoenix Edition (https://qb64phoenix.com/forum)
+-- Forum: QB64 Rising (https://qb64phoenix.com/forum/forumdisplay.php?fid=1)
+--- Forum: Code and Stuff (https://qb64phoenix.com/forum/forumdisplay.php?fid=3)
+---- Forum: Help Me! (https://qb64phoenix.com/forum/forumdisplay.php?fid=10)
+---- Thread: Need a Printer/Tester (/showthread.php?tid=2769)

Pages: 1 2


RE: Need a Printer/Tester - SpriggsySpriggs - 06-04-2024

What an odd way to print out something. But I guess it works.


RE: Need a Printer/Tester - bplus - 06-04-2024

Quote:Notice how the top of that first line is cut off? The last line on the page was too long for the page and, as such, it caused the screen to scroll up.

THAT's what the PCOPY undoes and then moves that line to the next page for us.

ok I was thinking to handle lines that won't fit, using _printwidth with word wrapping and tracking lines but...

Quote:What an odd way to print out something. But I guess it works.
Smile


RE: Need a Printer/Tester - SMcNeill - 06-04-2024

(06-04-2024, 11:20 AM)bplus Wrote:
Quote:Notice how the top of that first line is cut off? The last line on the page was too long for the page and, as such, it caused the screen to scroll up.

THAT's what the PCOPY undoes and then moves that line to the next page for us.

ok I was thinking to handle lines that won't fit, using _printwidth with word wrapping and tracking lines but...

Quote:What an odd way to print out something. But I guess it works.
Smile

I was actually thinking of adding something very similar to this little routine to the IDE, for a new option under the FILES menu -- PRINT.   This is short, lets the IDE basically handle wordwrap and such, and uses nothing but QB64 commands.  It should work on all printers, and doesn't need any SHELL or extra libraries to function for us.

It may be a little odd, but it's basically the best method we have for printing with QB64.   (And, it wouldn't be hard to have it print in colors, for folks who are using inkjet printers.  White, however, would probably need to change to a black instead, so it'd actually print for us.)


RE: Need a Printer/Tester - SpriggsySpriggs - 06-04-2024

If the WinGDI stuff wasn't effed up then it would look great for printing this stuff out. Lots of font and formatting options.


RE: Need a Printer/Tester - bplus - 06-04-2024

Yeah I don't miss hard copies of code, if i do need something plenty of WP's that do this.