|
|
Re: SWT and "internal frames" [message #60669 is a reply to message #60662] |
Tue, 21 September 2004 16:54 |
David J. Orme 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 #598721 is a reply to message #60662] |
Tue, 21 September 2004 16:54 |
David J. Orme 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
|
|
|
Powered by
FUDForum. Page generated in 0.04008 seconds