Page 1 of 1

Windows that don't show up on the tack bar

Posted: Sat Aug 05, 2006 1:07 am
by Tipperton
Is it possible using OpenWindow to create a window that doesn't have a button on the task bar?

Thanks!

Posted: Sat Aug 05, 2006 1:16 am
by ts-soft
Use a hidden-window + your window :wink:

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
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, "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

Posted: Sat Aug 05, 2006 1:42 am
by Tipperton
Thanks I'll have to try that.

Re: Windows that don't show up on the tack bar

Posted: Sat Aug 05, 2006 1:58 am
by PB
> Is it possible using OpenWindow to create a window that doesn't have a button on the task bar?

viewtopic.php?t=4865

Posted: Sat Aug 05, 2006 2:25 am
by Tipperton
ts-soft;

Thanks! That worked beautifuly and was very easy to do... :D

Posted: Sun Aug 27, 2006 10:43 am
by acidburn
Yey! TY for the code