Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Screen Resizing
#11
Hi Tony,

I put together some quick code to see what you are seeing. QB64 was made to be QuickBASIC compatible, so the fonts seen with WIDTH 40, 43 keep that legacy support. The fonts are different when using _NEWIMAGE, so I see the problem. _RESIZE works like a charm, manually, but not automatically. Since you want your app to work in Windows and Linux, you'll want to avoid WINAPI calls to resize the window. That pretty much leaves ditching the default fonts, and loading custom fonts. I'm not sure you will get the desired retro look with that approach.

I can't speak for the development team as to whether or not automatic resizing with the _RESIZE keyword would be a simple addition to an upcoming release. This is the first time, since it was created, such a related function has been desired. 

Pete
Reply
#12
(07-26-2024, 02:37 AM)Pete Wrote: Hi Tony,

I put together some quick code to see what you are seeing. QB64 was made to be QuickBASIC compatible, so the fonts seen with WIDTH 40, 43 keep that legacy support. The fonts are different when using _NEWIMAGE, so I see the problem. _RESIZE works like a charm, manually, but not automatically. Since you want your app to work in Windows and Linux, you'll want to avoid WINAPI calls to resize the window. That pretty much leaves ditching the default fonts, and loading custom fonts. I'm not sure you will get the desired retro look with that approach.

I can't speak for the development team as to whether or not automatic resizing with the _RESIZE keyword would be a simple addition to an upcoming release. This is the first time, since it was created, such a related function has been desired. 

Pete
    Thanks Pete,

        I've been getting close to that conclusion.   I'm currently investigating sending Mouse commands to the program externally (perhaps with another QB64 program, perhaps with a Python script)    Your absolutely correct about wanting to avoid windows api.   (Unless maybe it's something fairly short that I can duplicate in Linux with different code).
Reply




Users browsing this thread: 1 Guest(s)