Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-swt-dev] Does SWT (in Eclipse 3.2 or w.4) support embedding of GTK widgets inside the SWT widgets?

Does SWT (in Eclipse 3.2 or w.4) support embedding of GTK widgets
inside the SWT widgets? I can embed Windows based widgets inside the
SWT in the following manner and it seems to just work fine. But I
would like to embed a Linux GTK based native window inside the SWT.
How do I do it?

        nativeComposite = new Composite(parent, SWT.EMBEDDED );

        TCHAR  tChrTitle = new TCHAR(0,"Notepad - Untitled",true);

        handle = os.FindWindow(null, tChrTitle);

        os.SetWindowLong(handle, OS.GWL_STYLE, OS.WS_VISIBLE |
OS.WS_CLIPCHILDREN | OS.WS_CLIPSIBLINGS);

        os.SetParent(handle,nativeComposite.handle);

- Dan


Back to the top