Page 1 of 1

Bug on PB 6.21 on OpenWindow flags

Posted: Mon Sep 15, 2025 4:41 pm
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

Re: Bug on PB 6.21 on OpenWindow flags

Posted: Mon Sep 15, 2025 8:00 pm
by mk-soft
There is therefore a patch

Link OneDrive:PureBasic IDE Patch

Re: Bug on PB 6.21 on OpenWindow flags

Posted: Mon Sep 15, 2025 10:24 pm
by Mindphazer
Thank you very much mk-soft !

Re: Bug on PB 6.21 on OpenWindow flags

Posted: Tue Sep 16, 2025 9:24 am
by Fred
Is it fixed in 6.30b2 ?

Re: Bug on PB 6.21 on OpenWindow flags

Posted: Tue Sep 16, 2025 12:39 pm
by Mindphazer
I haven't tested yet
I'll try as soon as i can

Re: Bug on PB 6.21 on OpenWindow flags

Posted: Tue Sep 16, 2025 5:39 pm
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 :)