[Lazarus] Getting X Window handle ?
zeljko
zeljko at holobit.net
Mon Nov 5 10:45:29 CET 2012
On Monday 05 of November 2012 10:35:45 Michael Van Canneyt wrote:
> Hello,
>
> I'm trying to embed the VLC player (using the videolan DLLS) in a LCL
> application. On Windows, this works fine. On Linux, this does not work.
>
> The reason is that the VideoLan library expects the native window handle.
> On Windows, TWinControl.Handle provides this.
>
> On Linux, TWinControl.Handle returns the GTK widget pointer if I'm using
> GTK. (I imagine it will be something similar when using Qt)
>
> 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.
zeljko
More information about the Lazarus
mailing list