Skip to main content



      Home
Home » Archived » Visual Editor (VE) » SWT and "internal frames"
SWT and "internal frames" [message #60662] Tue, 21 September 2004 04:59 Go to next message
Eclipse UserFriend
Hi

Is it possible to create internal frames with SWT, like in Swing? I would
have thought it would be a Composite with some special layout setting or
something like that, but I can't find anything on the subject.. Anyone?

rgds,
Henrik
Re: SWT and "internal frames" [message #60663 is a reply to message #60662] Tue, 21 September 2004 08:48 Go to previous messageGo to next message
Eclipse UserFriend
Hi Henrik,

> Is it possible to create internal frames with SWT, like in Swing? I would
> have thought it would be a Composite with some special layout setting or
> something like that, but I can't find anything on the subject.. Anyone?

I think this would be MDI type behavior which isn't officially supported
by SWT although I believe it can be hacked into working on Windows.

You might want to try posting your question on the newsgroup
eclipse.platform.swt that is read by the SWT developers and others.

Best regards,

Joe Winchester
Re: SWT and "internal frames" [message #60669 is a reply to message #60662] Tue, 21 September 2004 12:54 Go to previous message
Eclipse UserFriend
Henrik Skovgaard wrote:
> Hi
>
> Is it possible to create internal frames with SWT, like in Swing? I would
> have thought it would be a Composite with some special layout setting or
> something like that, but I can't find anything on the subject.. Anyone?

If you were willing to settle for a lightweight, Swing-like solution,
you could hack it as follows:

1) Use a ViewForm to represent the JInternalFrame and put it inside a
Composite using a null layout.

(If you want the more native Eclipse 2.1 look and feel you'll need to
grab the source to ViewForm from Eclipse 3.0M7 or from Essential Data at
the URL in my .signature. The SWT team changed ViewForm in 3.0 and it
no longer looks native, but I've archived the old version as a part of
SWTUtils, which is a part of Essential Data.)

2) Write mouse listeners to manually move, resize, etc, the ViewForm.

3) Add menu choices and code to let users move, resize from the keyboard
to meet accessibility requirements.


Regards,

Dave Orme

--
Dave Orme
Eclipse Visual Editor Project Lead
Advanced Systems Concepts' Chief Architect
http://www.swtworkbench.com http://essentialdata.sf.net
Re: SWT and "internal frames" [message #598668 is a reply to message #60662] Tue, 21 September 2004 08:48 Go to previous message
Eclipse UserFriend
Hi Henrik,

> Is it possible to create internal frames with SWT, like in Swing? I would
> have thought it would be a Composite with some special layout setting or
> something like that, but I can't find anything on the subject.. Anyone?

I think this would be MDI type behavior which isn't officially supported
by SWT although I believe it can be hacked into working on Windows.

You might want to try posting your question on the newsgroup
eclipse.platform.swt that is read by the SWT developers and others.

Best regards,

Joe Winchester
Re: SWT and "internal frames" [message #598721 is a reply to message #60662] Tue, 21 September 2004 12:54 Go to previous message
Eclipse UserFriend
Henrik Skovgaard wrote:
> Hi
>
> Is it possible to create internal frames with SWT, like in Swing? I would
> have thought it would be a Composite with some special layout setting or
> something like that, but I can't find anything on the subject.. Anyone?

If you were willing to settle for a lightweight, Swing-like solution,
you could hack it as follows:

1) Use a ViewForm to represent the JInternalFrame and put it inside a
Composite using a null layout.

(If you want the more native Eclipse 2.1 look and feel you'll need to
grab the source to ViewForm from Eclipse 3.0M7 or from Essential Data at
the URL in my .signature. The SWT team changed ViewForm in 3.0 and it
no longer looks native, but I've archived the old version as a part of
SWTUtils, which is a part of Essential Data.)

2) Write mouse listeners to manually move, resize, etc, the ViewForm.

3) Add menu choices and code to let users move, resize from the keyboard
to meet accessibility requirements.


Regards,

Dave Orme

--
Dave Orme
Eclipse Visual Editor Project Lead
Advanced Systems Concepts' Chief Architect
http://www.swtworkbench.com http://essentialdata.sf.net
Previous Topic:which version ve support jface?
Next Topic:VE and C/C++
Goto Forum:
  


Current Time: Mon Apr 28 01:24:36 EDT 2025

Powered by FUDForum. Page generated in 0.03000 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top