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 -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus