Form on Xwindow root
Hi,
I have found ,searching inside some source code projects, one very interesting code to display your form on xwindow root system layer.
With this code you could develop one desktop application as lxde, xfce, or other...
To do this, you need to create one new class named Atom on your gambas graphic project an put this code :
Static Private $cAtom As New Collection
Static Public Sub _get(sAtom As String) As Integer
Dim iAtom As Integer
Try iAtom = $cAtom[sAtom]
If Error Then
iAtom = X11.InternAtom(sAtom, True)
$cAtom[sAtom] = iAtom
Endif
Return iAtom
End
well, to use this class, simple call it in your main form in method Form_open() with this line:
X11.SetWindowProperty(Fmain.Id, Atom["_NET_WM_WINDOW_TYPE"], Atom["ATOM"], Atom["_NET_WM_WINDOW_TYPE_DESKTOP"])
Your form will be behind all window if you use openbox,icewm,fluxbox or other very light wm without desktop.
Thanks for your attention.