Bug on PB 6.21 on OpenWindow flags

You need some new stunning features ? Tell us here.
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 470
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Bug on PB 6.21 on OpenWindow flags

Post by Mindphazer »

Create a new form, check #PB_Window_MinimizeGadget, #PB_Window_MaximizeGadget, #PB_Window_SizeGadget, #PB_Window_Invisible, #PB_Window_ScreenCentered in the Form Designer
Save the Form
Open it
Uncheck #PB_Window_Invisible
Save the form
Open it
Change view/code design : the flag #PB_Window_Invisible is still present in OpenWindow() and some are doubled :

Code: Select all

Procedure OpenWindow_0(x = 0, y = 0, width = 300, height = 200)
  Window_0 = OpenWindow(#PB_Any, x, y, width, height, "", #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_Invisible | #PB_Window_ScreenCentered | #PB_Window_SystemMenu | #PB_Window_MinimizeGadget | #PB_Window_MaximizeGadget | #PB_Window_SizeGadget | #PB_Window_Invisible | #PB_Window_ScreenCentered)
EndProcedure
Tested on Windows 11 and MacOS
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
mk-soft
Always Here
Always Here
Posts: 6270
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Bug on PB 6.21 on OpenWindow flags

Post by mk-soft »

There is therefore a patch

Link OneDrive:PureBasic IDE Patch
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 470
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Bug on PB 6.21 on OpenWindow flags

Post by Mindphazer »

Thank you very much mk-soft !
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
Fred
Administrator
Administrator
Posts: 18301
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Re: Bug on PB 6.21 on OpenWindow flags

Post by Fred »

Is it fixed in 6.30b2 ?
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 470
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Bug on PB 6.21 on OpenWindow flags

Post by Mindphazer »

I haven't tested yet
I'll try as soon as i can
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
User avatar
Mindphazer
Enthusiast
Enthusiast
Posts: 470
Joined: Mon Sep 10, 2012 10:41 am
Location: Savoie

Re: Bug on PB 6.21 on OpenWindow flags

Post by Mindphazer »

Fred wrote: Tue Sep 16, 2025 9:24 am Is it fixed in 6.30b2 ?
Just tried (PB 6.30b2 MacOS M2) : the problem has disappeared :)
MacBook Pro 16" M4 Pro - 24 Gb - MacOS 15.4.1 - Iphone 15 Pro Max - iPad at home
...and unfortunately... Windows at work...
Post Reply