Is it possible using OpenWindow to create a window that doesn't have a button on the task bar?
Thanks!
Windows that don't show up on the tack bar
Use a hidden-window + your window
The Main-Window is invisible, so not in the taskbar, the parent isn't in the taskbar
Here with changing:

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
Here with changing:
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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.

Re: Windows that don't show up on the tack bar
> Is it possible using OpenWindow to create a window that doesn't have a button on the task bar?
viewtopic.php?t=4865
viewtopic.php?t=4865
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.