Enlarge Graphics Window screen on Small Basic

Jackson José Lima de Mello 0 Reputation points
2023-05-10T03:37:16.67+00:00
When I Basic click on the maximize button a white background appears filling my screen the whole screen instead of increasing my home screen.
How can I enlarge, after programming, the entire Graphics Window screen along with shapes and texts, keeping mouse interactions?
Small BASIC
Small BASIC
A programming language created by Microsoft that serves a stepping stone for beginners from block-based coding languages to more complex text-based languages.
277 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Scout 136 Reputation points
    2023-05-10T07:48:03.3966667+00:00

    The Small Basic GraphicsWindow has a fixed x/y coordinate system and all objects are defined using concrete pixel information.

    It is therefore not possible to enlarge the objects using the window function. The coordinates or size definitions would then no longer match the source code.

    In the source code window, however, there is the nice option of enlarging the source text with "Ctrl" "Mousewheel".

    0 comments No comments

  2. WhTurner 1,611 Reputation points
    2023-05-10T12:11:58.49+00:00

    If you want to have a full screen GraphicsWindow, you have to define the right height and width.

    Try the following testprogram:

    deskH=Desktop.Height
    deskW=Desktop.Width
    TextWindow.WriteLine(deskh+" :  "+deskw)
    TextWindow.Pause()
    GraphicsWindow.Height=100
    GraphicsWindow.Width=100
    GraphicsWindow.BackgroundColor="Yellow"
    TextWindow.Pause()
    GraphicsWindow.Left=0
    GraphicsWindow.Top=0
    GraphicsWindow.Height=deskH
    GraphicsWindow.Width=deskW
    
    
    0 comments No comments