Code: Select all
If OpenWindow(0, 0, 0, 400, 100, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindow(1, 200, 200, 200, 200,"",#PB_Window_MinimizeGadget, WindowID(0))
AddWindowTimer(0, 123, 2500)
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Timer And EventTimer() = 123
CloseWindow(0)
Debug IsWindow(0)
Debug IsWindow(1)
EndIf
Until Event = #PB_Event_CloseWindow
EndIf
// Moved from "Bugs - Windows" to "General Discussion" (Kiffi)