window close button

Just starting out? Need help? Post your questions and find answers here.
bmld76
Posts: 26
Joined: Wed May 24, 2023 5:10 pm

window close button

Post by bmld76 »

Hello

Just to inform about an observation on the close button. If I add optional flag like ScreenCentered , I have to add SystemMenu to keep the close button.
It is interesting to have a window without close button with an open et resize ( number 4).

Cordialy

Code: Select all

OpenWindow(0, 10, 10, 300, 100, "With close button not centerd")
OpenWindow(1, 0, 0, 500, 400, "with close button centered" , #PB_Window_SystemMenu | #PB_Window_ScreenCentered )
OpenWindow(2, 0, 0, 300, 100, "without close button centered" , #PB_Window_ScreenCentered )
OpenWindow(4, 0, 0, 300, 100, "without close button no centered" , #PB_Window_ScreenCentered )
ResizeWindow(4,10,300,#PB_Ignore,#PB_Ignore)