Windows that don't show up on the tack bar
Posted: Sat Aug 05, 2006 1:07 am
Is it possible using OpenWindow to create a window that doesn't have a button on the task bar?
Thanks!
Thanks!
http://www.purebasic.com
https://www.purebasic.fr/english/
Code: Select all
If OpenWindow(0, 0, 0, 0, 0, "", #PB_Window_Invisible)
OpenWindow(1, #PB_Ignore, 0, 640, 480, "Test2", #PB_Window_SystemMenu, WindowID(0))
Repeat
Until WaitWindowEvent() = #PB_Event_CloseWindow
EndIf
Code: Select all
If OpenWindow(0, 0, 0, 0, 0, "Test1", #PB_Window_Invisible|#PB_Window_BorderLess)
If OpenWindow(1, #PB_Ignore, 0, 640, 480, "Test2", #PB_Window_SystemMenu, WindowID(0))
If CreateGadgetList(WindowID(1))
ButtonGadget(0, 10, 10, 80, 25, "Hide On/Off", #PB_Button_Toggle)
EndIf
EndIf
Flag = 1
Repeat
Event = WaitWindowEvent()
If Event = #PB_Event_Gadget
If EventGadget() = 0
Flag ! 1
HideWindow(0, Flag)
EndIf
EndIf
Until Event = #PB_Event_CloseWindow
EndIf