Posts: 1,616
Threads: 157
Joined: Apr 2022
Reputation:
77
Rho might know. I'm not aware of a keyword that does this, oh except...
IF Pete THEN SCREEN 0
Probably not what you are looking for. I also wonder about Ted's routine. Solid on colors, but since we can set font sizes and screen sizes in all screens, I wouldn't want to depend on those for detection.
Pete
Posts: 1,616
Threads: 157
Joined: Apr 2022
Reputation:
77
If eggs are brain food, Biden takes his scrambled.
Posts: 1,510
Threads: 53
Joined: Jul 2022
Reputation:
47
I was going to post earlier saying "SCREEN" isn't recommended for new programs over "_NEWIMAGE". It's simply because a wrapper function could be created that sets the screen mode and saves the width, height, color depth and other information. "SCREEN" statement is around largely to support old BASIC programs and up to and including VGA 256-color mode.
I wanted to point out also that I don't like the "screenmode" example neither, in addition because it makes assumptions beyond "SCREEN 13", especially for 32-bit color. Toward "SCREEN 0" there's also the fallacy of how many rows and columns, and the "$CONSOLE" isn't going to be an option for some programmers.
Posts: 1,616
Threads: 157
Joined: Apr 2022
Reputation:
77
Yeah, I would be in favor of scrapping that example from the Wiki, and adding a return for the screen value, as Rho suggested.
I would also like to know what Terry envisions doing with it.
Pete
Posts: 1,616
Threads: 157
Joined: Apr 2022
Reputation:
77
I love it. I think that is probably the best reason to have this feature implemented. Without it, a user would have to pass the screen in the form of a variable to the library.
So the library would have a variety of popup message box sizes and colors, based on the chosen screen and font size. Nice!
Pete
If eggs are brain food, Biden takes his scrambled.
Posts: 2,700
Threads: 124
Joined: Apr 2022
Reputation:
134
09-30-2022, 02:38 AM
(This post was last modified: 09-30-2022, 02:40 AM by bplus.)
Using _NewImage these days for setting up graphics screens makes screen modes a bit out dated.
b = b + ...