Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enlarging window for older BAS programs (ie. Screen 7 mode)
#1
I was wondering if it is somehow possible to enlarge the window for older BAS programs? 
Such as ones that use those older screen modes such as SCREEN 7.
When i run them, the window is quite small, playable, but small.
Reply
#2
Hi. Try _FullScreen, or Alt + Enter after run.


Reply
#3
Yes you can now create custom sized screens

Screen _NewImage(myScreenWidthPixels%, myScreenHeightPixels%, MyColorPallet%)

MyColorpallet% = 12, 256, 32
12 is 16 color old QB colors
256 is pallet stuff I dont use so cant describe well
32 is millions of color options using _RGB32(r, g, b, alpha)

Oh yes! for old programs use Petr's suggestion but you might need a little _Delay after Screen statement before going full screen.
warning: you may experience some distortion of circles and squares.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply
#4
(12-24-2025, 07:32 PM)bplus Wrote: Yes you can now create custom sized screens

Screen _NewImage(myScreenWidthPixels%, myScreenHeightPixels%, MyColorPallet%)

MyColorpallet% = 12, 256, 32
12 is 16 color old QB colors
256 is pallet stuff I dont use so cant describe well
32 is millions of color options using _RGB32(r, g, b, alpha)

Oh yes! for old programs use Petr's suggestion but you might need a little _Delay after Screen statement before going full screen.
warning: you may experience some distortion of circles and squares.

   I've been doing a lot of Palette Stuff so I'll describe 256.   
In 32 bit mode if you do a _MEMIMAGE the Image buffer pixels map to an Array of Long each Pixel stored in RGBA format.

In 256 palette mode Each the Pixels map to an array of _unsigned _byte and the Palette holds 256 (Indice's 0 to 255) Palette Descriptors in Long RGBA format
The Pixel Bytes are an Index into the Palette !       The Palette values can be set with  _PaletteColor Index, RGBAVal and retrieved with the  _PaletteColor(Indx) function !

If doing a _LoadImage("image.bmp", 256)  a default palette is used for image mapping
If doing a _LoadImage("image.bmp", 257) a more optimized adaptive palette is used !
Reply
#5
$RESIZE:STRETCH  

$RESIZE:SMOOTH

Add either of those commands to the top of your program and you can grab and resize the window to whatever size you want once compiled.
Reply
#6
(12-24-2025, 08:52 PM)SMcNeill Wrote: $RESIZE:STRETCH  

$RESIZE:SMOOTH

Add either of those commands to the top of your program and you can grab and resize the window to whatever size you want once compiled.
Thanks. Just what i was wanting.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running QB64 v2 InForm Programs on PE Magdha 2 355 11-19-2025, 11:10 AM
Last Post: Magdha
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 11 1,042 11-10-2025, 07:23 PM
Last Post: madscijr
  is there any way to position the inputbox$ window? madscijr 21 1,622 11-06-2025, 09:54 PM
Last Post: madscijr
  auto-detecting screen resolution for optimal window size on non-Windows systems madscijr 0 214 10-26-2025, 06:58 PM
Last Post: madscijr
  Play wav file in the background without a window on the forground Rudy M 12 1,125 09-18-2025, 07:08 PM
Last Post: Pete

Forum Jump:


Users browsing this thread: