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

Windows specific forum
Jan2004
Enthusiast
Enthusiast
Posts: 163
Joined: Fri Jan 07, 2005 7:17 pm

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

Post 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

User avatar
jacdelad
Addict
Addict
Posts: 2004
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

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

Post by jacdelad »

Code: Select all

 WindowBounds(0, 300, 300, #PB_Ignore, #PB_Ignore)
Last edited by jacdelad on Mon Oct 16, 2023 4:26 pm, edited 1 time in total.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/DX517, 130.9TB+50.8TB+2TB SSD
Jan2004
Enthusiast
Enthusiast
Posts: 163
Joined: Fri Jan 07, 2005 7:17 pm

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

Post by Jan2004 »

Thanks!
Post Reply