![]() |
Scrolling Output That Exceeds Screen Size - 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: Scrolling Output That Exceeds Screen Size (/showthread.php?tid=2586) Pages:
1
2
|
Scrolling Output That Exceeds Screen Size - Tim - 04-08-2024 I have been trying to figure out how to do this, scroll program output when it fills more than one screenful , but I have had no luck so far. I am currently working on Lesson 4 of Terry's Tutorial. Some example programs, as well as my own experiments, use a lot more screen length than just one. For example, one of the example programs counts to 100 (from whatever starting point you give it); I would like to be able to see all of the output from it (as well as the results of my own hacks, which I do in order to make sure I can replicate and understand creatively what the lesson(s) teach). RE: Scrolling Output That Exceeds Screen Size - SMcNeill - 04-08-2024 If all you need is a text output, you can always swap from the SCREEN _NEWIMAGE screens and use $CONSOLE:ONLY to print to the terminal, which allows for built in scrolling (up to whatever the buffer length is set at -- it's not limitless scrolling either). Otherwise, all you can do is print a single page of text to the screen at a time. To create that scrolling effect, you'd need to print to the screen inside a DO...LOOP, read the user input, and then change the starting point of that large list based on what the user wants/needs. I'm not certain when Terry covers such a process in his tutorial, but it's not that complicated really to do a "scrollable list". If he doesn't have a chapter on creating one, maybe he'll work one up for everyone to take a gander at in his free time. ![]() (If not, I'll whip one up late one night when I'm restless and can't sleep, for folks to study sometime. ![]() RE: Scrolling Output That Exceeds Screen Size - TerryRitchie - 04-08-2024 Go ahead Steve, I'm working on the additions to Lesson 5 at the moment and am in the groove so to speak. Don't want to step away from it right now. RE: Scrolling Output That Exceeds Screen Size - bplus - 04-08-2024 @Tim since you are just starting try out Console only you can even copy text from it! There is a real simple scroll example in Wiki, was it mousewheel? I am on wrong computer to look it up... update, yes but it was for file contents but if you put all display stuff in an array it works the same. I also have a tool for scrolling (and selecting) an array if you are interested. RE: Scrolling Output That Exceeds Screen Size - PhilOfPerth - 04-08-2024 This is all I do (change the Pos()0) limit to whatever) Locate 1, 40 For a = 33 To 200 Print Tab(40); a; Chr$(a) If Pos(0) > 30 Then Locate 31, 40 _Delay .1 Next RE: Scrolling Output That Exceeds Screen Size - Tim - 04-09-2024 This is the exercise/program from the Tutorial that I am trying to be able to see in its entirety, or to scroll: SCREEN _NEWIMAGE(800, 600, 32) PRINT "This program will count to 100 from the number you supply." INPUT "Enter the number to start counting from > ", count% WHILE count% <= 100 PRINT count% count% = count% + 1 WEND RE: Scrolling Output That Exceeds Screen Size - bplus - 04-09-2024 Code: (Select All) 'Screen _NewImage(800, 600, 32) this will work for that program too; Code: (Select All) Screen _NewImage(800, 600, 32) RE: Scrolling Output That Exceeds Screen Size - Tim - 04-09-2024 (04-09-2024, 12:08 AM)bplus Wrote:I have done that, and it worked fine; I still want to be able to scroll without going to console:only mode. If I can. RE: Scrolling Output That Exceeds Screen Size - PhilOfPerth - 04-09-2024 Code: (Select All) 'This will slow down scroll after screen reaches row 30 RE: Scrolling Output That Exceeds Screen Size - bplus - 04-09-2024 here is a scrolling demo for reading any text or bas file that uses crlf to end lines Code: (Select All) _Title "Scroll file" ' b+ 2024-04-08 edit to increase screen size and center it better on screen edit2 forgot to change page size dang still finding errors, it's a starter |