Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Line 1 disappears
#9
Here's a quick demo of manually using $RESIZE:ON to change the number of rows and columns which are available on screen, without scaling the display image itself:

Code: (Select All)
$Resize:On
activeScreen = _NewImage(80, 25, 0) 'standard screen 0
Screen activeScreen

DrawBorder
_Delay .25
clearInitialResize = _Resize 'clear thr size change from where QB64 first starts up

Do
    If _Resize Then
        tempScreen = _NewImage(_ResizeWidth \ _FontWidth, _ResizeHeight \ _FontHeight, 0)
        Screen tempScreen
        _FreeImage activeScreen
        activeScreen = tempScreen
        DrawBorder
    End If
Loop Until _KeyHit
System

Sub DrawBorder
    Color 4
    For x = 1 To _Width
        Locate 1, x: Print Chr$(219);
        Locate _Height, x: Print Chr$(219);
    Next
    For y = 1 To _Height
        Locate y, 1: Print Chr$(219);
        Locate y, _Width: Print Chr$(219);
    Next
    Color 15
    Locate _Height \ 2, _Width \ 2 - 12: Print "Resize On, Non-Scale Demo"
    Locate _Height \ 2 + 2, 3: Print "Width:"; _Width
    Locate _Height \ 2 + 3, 3: Print "Height:"; _Height
End Sub
Reply


Messages In This Thread
Line 1 disappears - by BDS107 - 07-20-2022, 09:14 AM
RE: Line 1 disappears - by bplus - 07-22-2022, 04:46 PM
RE: Line 1 disappears - by SMcNeill - 07-22-2022, 05:25 PM
RE: Line 1 disappears - by SMcNeill - 07-22-2022, 05:51 PM
RE: Line 1 disappears - by SMcNeill - 07-22-2022, 05:59 PM
RE: Line 1 disappears - by BDS107 - 07-22-2022, 07:52 PM
RE: Line 1 disappears - by BDS107 - 07-24-2022, 07:10 PM
RE: Line 1 disappears - by SMcNeill - 07-24-2022, 07:50 PM
RE: Line 1 disappears - by admin - 07-24-2022, 08:09 PM
RE: Line 1 disappears - by admin - 07-24-2022, 08:21 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Setting Line _RGB colours PhilOfPerth 10 1,974 11-03-2024, 05:37 AM
Last Post: PhilOfPerth
  Having trouble Windows command line SORT via SHELL GTC 19 4,444 08-26-2023, 04:19 AM
Last Post: GTC
  SHELL creates unicode file, can't read correctly with LINE INPUT thesolarcode 3 1,247 05-06-2023, 09:41 PM
Last Post: thesolarcode
  _NotifyPopup disappears mdijkens 2 909 01-03-2023, 02:07 PM
Last Post: SpriggsySpriggs
  Equation For Specific Line Length Needed SierraKen 17 3,514 08-18-2022, 03:31 AM
Last Post: SierraKen

Forum Jump:


Users browsing this thread: 1 Guest(s)