I noticed this minutes ago.
It works well on Windows 11.
Code: Select all
OpenWindow(1,10,10,800,600,"Testing",#PB_Window_SystemMenu|#PB_Window_MinimizeGadget|#PB_Window_SizeGadget)
OpenWindow(2,0,0,640,480,"About",#PB_Window_WindowCentered,WindowID(1))
DisableWindow(1,#True)
x=10
y=10
; Current PureBasic information
Global current_version_purebasic$="6.21"
Global current_release_date_purebasic$="2025-06-09"
t$=""+#LF$
t$+"Compiled using PureBasic "+current_version_purebasic$+" — "+current_release_date_purebasic$+#LF$
t$+Chr(34)+"Feel the ..Pure.. Power"+Chr(34)+#LF$+#LF$
t$+"© 1998–"+FormatDate("%yyyy", #PB_Compiler_Date)+" Fantaisie Software."+#LF$
t$+"www.purebasic.com"
TextGadget(1,x,y,320,240,t$,#PB_Text_Border|#PB_Text_Center)
SetGadgetColor(1,#PB_Gadget_BackColor,#White)
okay=#False
Repeat
event=WaitWindowEvent()
If event=#PB_Event_CloseWindow
okay=#True
EndIf
Until okay=#True
; Close the About window and activate the main window
DisableWindow(1,#False)
CloseWindow(2)