Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Visual Editor (VE) » SWT and "internal frames"
SWT and "internal frames" [message #60662] Tue, 21 September 2004 08:59 Go to next message
Henrik Skovgaard is currently offline Henrik SkovgaardFriend
Messages: 84
Registered: July 2009
Member
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 12:48 Go to previous messageGo to next message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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 16:54 Go to previous message
David J. Orme is currently offline David J. OrmeFriend
Messages: 291
Registered: July 2009
Senior Member
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 12:48 Go to previous message
Joe Winchester is currently offline Joe WinchesterFriend
Messages: 496
Registered: July 2009
Senior Member
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 16:54 Go to previous message
David J. Orme is currently offline David J. OrmeFriend
Messages: 291
Registered: July 2009
Senior Member
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: Sat Jul 27 16:25:43 GMT 2024

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

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

Back to the top