Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
_gb3.pngGambas IDE Help - Form behind Xwindow root

Form on Xwindow root

x.jpg



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.


Creation date : 29/10/2021 @ 22:46
Last update : 29/10/2021 @ 22:46
Category : Gambas IDE Help
Page read 1787 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^