Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » How to create a shell out of the screen?(Improve the presentation of information)
How to create a shell out of the screen? [message #986958] Thu, 22 November 2012 14:25 Go to next message
Francis Delsinnes is currently offline Francis DelsinnesFriend
Messages: 49
Registered: November 2011
Member
How to create a shell out of the screen?

In a RAP application (made from a primary shell in full size),
I would like create another shell and give it an absolute position relative to the content of its parent.

Why?
To create information panels overlays to existing content of a page.
Example: an information over a background image as a banner.

Easy => Use a Composite (set its background-image)...

But: this panel should not completely to be included in the background image.
Only a part of this image, the rest would be beside of.../in the "empty space".
When you scroll the screen, this panel (shell) does not remain "stuck" in the display area.

goal:
Improve the presentation of information and obtain a more beautiful layout.
Re: How to create a shell out of the screen? [message #987477 is a reply to message #986958] Mon, 26 November 2012 18:58 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1296
Registered: July 2009
Senior Member

Hi Francis,

I didn't understand why you prefer a Shell over a Composite. Maybe a
screenshot would help?

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: How to create a shell out of the screen? [message #987482 is a reply to message #986958] Mon, 26 November 2012 20:09 Go to previous message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 133
Registered: July 2009
Senior Member
Francis,

As Ralf mentioned, a screenshot would definitely help. It is simple enough to open a shell, however.

Shell popup = new Shell(parentShell, SWT.SHELL_TRIM);
// Create contents of shell as you would the 
...
// Calculate location and size
int x = ...;
int y = ...;
int width = ...;
int height = ...;
// Set size and location of shell in Display coordinates
popup.setBounds(x, y, width, height);
popup.open();


Hope that helps,

Cole
Previous Topic:How is Apress RAP book up-to-date/outdated?
Next Topic:Getting Started
Goto Forum:
  


Current Time: Sat Dec 20 21:34:01 GMT 2014

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

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