QB64 Phoenix Edition v3.5.0 Released!
#29
(01-11-2023, 05:00 AM)mnrvovrfc Wrote: Why are you using "LOCATE" after "$CONSOLE:ONLY"?

If the console is 25 lines, the "LOCATE 27" which is the last cursor placement makes the screen roll. Either you make the "CMD.EXE" window longer up and down, or you take away the "$CONSOLE:ONLY" and add "WIDTH 80, 30" near the top of your program or something else.

EDIT: The screenshot indicates the program is working as expected. But it might benefit from a "CLS" first of all. Trying to treat the console like "SCREEN 0" is tricky on Windows.

No, it can not be, because under 3.4.1 it works as usual. I just tried that again. The locate in line 27 only serves to place the "Press any key ..." down a bit; I almost always do that with programs like this.

Also just tried: If I first run the program with 3.4.1 and then with 3.5.0 there are no problems, of course, because it was created with 3.4.1. If I now delete the exe file and create it again with 3.5.0, this strange behavior is there again.

If I take out the locate, it works again as usual after the second F5, then this strange behavior again. If I remove "$Console...", see screenshot.
So something goes wrong with the interaction of "$Console" and Locate on line 27, but only on 3.5.0.

Without "$Console ..."
[Image: Locatefehler2023-01-11-134646.jpg]
Reply


Messages In This Thread
RE: QB64 Phoenix Edition v3.5.0 Released! - by Kernelpanic - 01-11-2023, 12:51 PM



Users browsing this thread: 38 Guest(s)