Make fbgfx window not show on panel

General FreeBASIC programming questions.
Post Reply
chrowle
Posts: 47
Joined: Oct 21, 2013 23:32
Location: Alberta, Canada

Make fbgfx window not show on panel

Post by chrowle »

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?
MOD
Posts: 557
Joined: Jun 11, 2009 20:15

Re: Make fbgfx window not show on panel

Post by MOD »

Hi. The best way I've found is this (win-only):

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)
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.
fxm
Moderator
Posts: 12110
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Re: Make fbgfx window not show on panel

Post by fxm »

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'.
chrowle
Posts: 47
Joined: Oct 21, 2013 23:32
Location: Alberta, Canada

Re: Make fbgfx window not show on panel

Post by chrowle »

Hmm... Is there a way that will work in LXDE?
Landeel
Posts: 777
Joined: Jan 25, 2007 10:32
Location: Brazil
Contact:

Re: Make fbgfx window not show on panel

Post by Landeel »

Code: Select all

SHELL "wmctrl -r YourWindowName -b add,skip_taskbar"
However you need wmcrtl installed for this to work.
Post Reply