Make fbgfx window not show on panel
Make fbgfx window not show on panel
Hello, I am writing a sidebar with fbgfx, and am wondering how to get it to not show on the panel (lxpanel). Is there a way to do this?
Re: Make fbgfx window not show on panel
Hi. The best way I've found is this (win-only):
Maybe someone knows a better way.
Edit:
Sorry, this question seems to be related to LXDE, so this post will not help. But as this is the General part of the forum, maybe someone else can use it.
Code: Select all
WindowTitle "MySidebar"
Dim As HANDLE hWnd = FindWindow(0, StrPtr("MySidebar"))
ShowWindow(hWnd, SW_HIDE)
SetWindowLong (hWnd, GWL_EXSTYLE, GetWindowLong(hWnd, GWL_EXSTYLE) Or WS_EX_TOOLWINDOW)
ShowWindow(hWnd, SW_SHOW)
Edit:
Sorry, this question seems to be related to LXDE, so this post will not help. But as this is the General part of the forum, maybe someone else can use it.
Re: Make fbgfx window not show on panel
Just a small also general remark (also applying on any procedure called):
'StrPtr()' in FindWindow(0, StrPtr("MySidebar")) is not mandatory, and we can just use:
FindWindow(0, "MySidebar")
because in FreeBASIC, any string type argument may be directly passed to a procedure referring to a parameter declared as 'zstring ptr'.
'StrPtr()' in FindWindow(0, StrPtr("MySidebar")) is not mandatory, and we can just use:
FindWindow(0, "MySidebar")
because in FreeBASIC, any string type argument may be directly passed to a procedure referring to a parameter declared as 'zstring ptr'.
Re: Make fbgfx window not show on panel
Hmm... Is there a way that will work in LXDE?
Re: Make fbgfx window not show on panel
Code: Select all
SHELL "wmctrl -r YourWindowName -b add,skip_taskbar"