SWT and "internal frames" [message #60662] |
Tue, 21 September 2004 04:59  |
Eclipse User |
|
|
|
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 #60669 is a reply to message #60662] |
Tue, 21 September 2004 12:54  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03000 seconds