Lost keywords displayed by v1.1 changelog
#7
One lost mystery solved -- _SCALEDWIDTH and _SCALEDHEIGHT are currently for use with $RESIZE, and they tell you the size of your resized window.

Code: (Select All)
Screen _NewImage(640, 480, 32)
$Resize:Smooth

Do
    Cls
    Print "Hello World"
    Print _Width, _ScaledWidth
    Print _Height, _ScaledHeight
    _Limit 30
    _Display
Loop Until _KeyHit


Run the above and drag the edges of your screen to resize it.  It'll faithfully tell you what your current screen size is for your program.

I guess you could use this information to compare against _DESKTOPWIDTH and _DESKTOPHEIGHT, to make certain that your program doesn't scale beyond the limits of the user's screen, but I'm not thinking of a whole lot of other uses for it besides that off the top of my head.  

But for what it's worth, that's what those two commands do -- they give us the scaled width and height of our resized windows.  Smile
Reply


Messages In This Thread
RE: Lost keywords displayed by v1.1 changelog - by SMcNeill - 12-06-2022, 09:24 PM



Users browsing this thread: 2 Guest(s)