[Gambas-user] gb.desktop.x11 (taskbar)
Fabien Bodard
gambas.fr at ...626...
Fri May 16 21:32:33 CEST 2014
well benoit forgot to export atom ...
2014-05-16 18:30 GMT+02:00 Benoît Minisini <gambas at ...1...>:
> Le 16/05/2014 18:15, herberth guzman a écrit :
>> Hi Beno?t
>>
>> Send part of my code from my taskbar
>> I have read a little about freedesktop and have seen some codes (they are
>> all different)
>> Really do not want to use one existing, I want one made in Gambas3, is
>> that why I need it.
>>
>> I would like that my whole project is developed in Gambas3.
>>
>> And thanks for your help and support.
>>
>> Regards.
>>
>>
>> //////////////////////////////////////////////
>>
>> Public id_win_active As Integer
>> Public HPanel_app As Panel
>> Public hToggle As ToggleButton
>>
>> Public Sub _new()
>>
>> X11.SetWindowProperty(Atom["_NET_WM_WINDOW_TYPE"], Atom["ATOM"],
>> Atom["_NET_WM_WINDOW_TYPE_DOCK"], f_taskbar.Id)
>> X11.SetWindowProperty(Atom["_NET_WM_STRUT"], Atom["ATOM"], [0, 0, 0, 32],
>> f_taskbar.Id)
>> X11.SetWindowProperty(Atom["_NET_WM_STRUT_PARTIAL"], Atom["ATOM"], [0, 0,
>> 0, 32, 0, 0, 0, 0, 0, 0, Desktop.H], f_taskbar.Id)
>>
>> '_NET_WM_USER_TIME (I have no idea)
>>
>> Desktop_Windows
>>
>> End
>>
>
> You should not do that in "_new", because your window may not have a
> window handle yet. Do that in the 'Open' event.
>
> The _NET_WM_USER_TIME of the window must be set to X11.Time (which
> should be named X11.LastEventTime).
>
> Regards,
>
> --
> Benoît Minisini
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
--
Fabien Bodard
More information about the User
mailing list