Page 1 of 1

WindowBounds: I don't want to minimize the window, but maximize it yes (I want)

Posted: Mon Oct 16, 2023 3:12 pm
by Jan2004
WindowBounds: I don't want to minimize the window, but maximize it yes (I want). Which way of writing the WindowBounds command is correct - the first or the second one, or maybe another one.

Code: Select all

If OpenWindow(0, 0, 0, 300, 300, "Resize me !", #PB_Window_MinimizeGadget | #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_MaximizeGadget |  #PB_Window_SizeGadget)
  ;The first way
  WindowBounds(0, 300, 300, 0, 0)
  ;The second way
  ;WindowBounds(0, 200, 200, 100000000, 100000000)

    Repeat
      Event = WaitWindowEvent()
    Until Event = #PB_Event_CloseWindow
  EndIf


Re: WindowBounds: I don't want to minimize the window, but maximize it yes (I want)

Posted: Mon Oct 16, 2023 3:32 pm
by jacdelad

Code: Select all

 WindowBounds(0, 300, 300, #PB_Ignore, #PB_Ignore)

Re: WindowBounds: I don't want to minimize the window, but maximize it yes (I want)

Posted: Mon Oct 16, 2023 3:40 pm
by Jan2004
Thanks!