Make the panel (taskbar) disappear during full screen

Linux specific forum
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Make the panel (taskbar) disappear during full screen

Post by coco2 »

How do you make the panel disappear during fullscreen windowed mode?
User avatar
moulder61
Enthusiast
Enthusiast
Posts: 193
Joined: Sun Sep 19, 2021 6:16 pm
Location: U.K.

Re: Make the panel (taskbar) disappear during full screen

Post by moulder61 »

Hi coco2,

I recently discovered StickyWindow(#Window, State). It forces a window to be on top of other windows.

I'm using a minimal XFCE desktop and my panel, tint2, is set to be below windows hierarchically. It's also set to have maximised windows not cover it. Fullscreen windows do though.

Obviously I have no idea what desktop/environment you are using, but either changing the panel settings or trying StickyWindow might be worth a try?

Another option would be to set your panel to hide intelligently. The downside to that would be that if you shared your software, the recipient would probably have to do the same on their machine.

Moulder.
"If it ain't broke, fix it until it is!

This message is brought to you thanks to SenselessComments.com

My PB stuff for Linux: "https://u.pcloud.link/publink/show?code ... z3MR0T3jyV
User avatar
mk-soft
Always Here
Always Here
Posts: 6246
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Make the panel (taskbar) disappear during full screen

Post by mk-soft »

GTK FullScreen ...

Code: Select all

;-TOP

Procedure UpdateWindow()
  Protected dx, dy
  dx = WindowWidth(0)
  dy = WindowHeight(0) - StatusBarHeight(0) - MenuHeight()
  ; Resize Gadgets
EndProcedure

Procedure Main()
  Protected dx, dy
  
  #WinStyle = #PB_Window_SystemMenu | #PB_Window_SizeGadget | #PB_Window_MaximizeGadget | #PB_Window_MinimizeGadget
  
  If OpenWindow(0, #PB_Ignore, #PB_Ignore, 600, 400, "Test Window", #WinStyle)
    ; MenuBar
    CreateMenu(0, WindowID(0))
    MenuTitle("&File")
    MenuItem(99, "E&xit")
    MenuTitle("&View")
    MenuItem(1, "Fullscreen On")
    MenuItem(2, "Fullscreen Off")
    
    ; StatusBar
    CreateStatusBar(0, WindowID(0))
    AddStatusBarField(#PB_Ignore)
    
    ; Gadgets
    dx = WindowWidth(0)
    dy = WindowHeight(0) - StatusBarHeight(0) - MenuHeight()
    
    ; Bind Events
    BindEvent(#PB_Event_SizeWindow, @UpdateWindow(), 0)
    
    ; Main Loop
    Repeat
      Select WaitWindowEvent()
        Case #PB_Event_CloseWindow
          Select EventWindow()
            Case 0
              Break
          EndSelect
          
        Case #PB_Event_Menu
          Select EventMenu()
            Case 99
              PostEvent(#PB_Event_CloseWindow, 0, 0)
              
            Case 1
              gtk_window_fullscreen_(WindowID(0))
              
            Case 2
              gtk_window_unfullscreen_(WindowID(0))
            
          EndSelect
          
        Case #PB_Event_Gadget
          Select EventGadget()
              
          EndSelect
          
      EndSelect
    ForEver
    
  EndIf
  
EndProcedure : Main()
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
coco2
Enthusiast
Enthusiast
Posts: 461
Joined: Mon Nov 25, 2013 5:38 am
Location: Australia

Re: Make the panel (taskbar) disappear during full screen

Post by coco2 »

Thanks it works
User avatar
Mijikai
Addict
Addict
Posts: 1520
Joined: Sun Sep 11, 2016 2:17 pm

Re: Make the panel (taskbar) disappear during full screen

Post by Mijikai »

Thanks :)
Post Reply