Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can you prevent a QB64 program from being maximized under Linux?
#5
(07-31-2023, 01:12 PM)Dav Wrote: Hey thanks for the reply and suggestion, mnrvovfrc. I played around with _RESIZE, tried to override the sizing with it.  I thought this code would do it to force deminsions, but still no go.  Guess I’ll just have to live with it.

$RESIZE:ON

DO
   IF _RESIZE THEN
      SCREEN 12 ‘ or whatever
   END IF
LOOP

- Dav
I'd change this just a wee bit, @Dav.

$RESIZE:ON

DO
   IF _RESIZE THEN
      SCREEN 12 ‘ or whatever
      Do: _Limit 60: Loop Until _Resize = 0
   END IF
LOOP

QB64 can be picky about how _RESIZE is reported.  Sometimes the call back to Screen 12 will get reported as a resize event, making your screen resize itself multiple times (and maybe even endlessly!).  

Anytime you're using _RESIZE to manually set the size of the screen, you want to make certain to clear that flag afterwards so that you don't end up endlessly tripping the resize routine over and over with it.  Wink
Reply


Messages In This Thread
RE: Can you prevent a QB64 program from being maximized under Linux? - by SMcNeill - 08-02-2023, 04:30 AM



Users browsing this thread: 2 Guest(s)