Code: Select all
Procedure test(x)
hwnd=OpenWindow(1, 0, 0, 256, 99, "", #PB_Window_ScreenCentered )
If hwnd
TextGadget(#PB_Any, 50, 10, 170, 70, "xxx", #PB_Text_Center)
EndIf
While WindowEvent() : Wend
Delay(1500)
CloseWindow(1)
EndProcedure
test=CreateThread(@test(),0)
While IsThread(test) : Delay(100) : Wend
If OpenWindow(0, 0, 0, 322, 35, "StringGadget Flags", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
StringGadget(0, 8, 10, 306, 20, "Normal StringGadget...")
StickyWindow(0,1)
StickyWindow(0,0)
SetActiveWindow(0)
Debug WindowID(0)
Debug SetFocus_(WindowID(0))
Debug GetFocus_()
SetActiveGadget(0)
Repeat : Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf