[Lazarus] Getting X Window handle ?

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Tue Nov 6 09:58:58 CET 2012



On Tue, 6 Nov 2012, Hans-Peter Diettrich wrote:

> Michael Van Canneyt schrieb:
>
>>>> How can I get access to the low-level X window handle (id) of a 
>>>> TWinControl
>>>> on Linux ?
>>> 
>>> It's not so problematic. Look at qtx11.inc in lcl/widgetset/qt or in
>>> gtk2widgetset.inc (there's IFDEF X11 or similar) which gets X11 TWindow 
>>> from
>>> GdkWindow.
>> 
>> Actually, it is in gtk2proc, FormToX11Window :-)
>> 
>> Thanks.
>> 
>> The function could accept a TWinControl instead of TCustomForm I would 
>> think.
>
> AFAIK X11 only supports handles for top level windows, managed by the window 
> manager.

This is not correct.

Michael.




More information about the Lazarus mailing list