[Lazarus] Getting X Window handle ?

Hans-Peter Diettrich DrDiettrich1 at aol.com
Tue Nov 6 02:48:44 CET 2012


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.

DoDi





More information about the Lazarus mailing list