[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?
|
- From: "Dharmesh Bhakta" <bhaktadn@xxxxxxxxx>
- Date: Thu, 12 Jun 2008 14:16:35 -0500
- Delivered-to: platform-swt-dev@eclipse.org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=HtM45ZLNSjxRKvaCOeoYmZkw7D/mm6mn0fwb3sRArg0=; b=CYYSwY2defZQnTnxiHE9Tab4aEC6PYsGT/sDk23/Ea0DYxDbXXPS2khsEIF2AMaPEv oYZyySVrCJhlkbFWhwOQmGZ/4mTcvfKNqktf0iIOuruGlR75QTQt/VnrwM37GOx3zXrv aZ0zz3+H02SYw4lJJedNWRWk4mP6lTLnAjcCQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=HM/oPX19QQ3Pi4smFc6j+iuTX52XZukZXxQLDB97++MZVJFf19a429zqR5BPSkovB0 6EBWMEtndFnDaYahDu8mcHDIIbnvnejyVCHjeMA8kv0KmppoS2EldcgL7HQhRJsHPBC/ Ipgok1D96PcnkYfZpio0xew0kEi8sxTFw/9dc=
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