Skip to main content



      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 09:25 Go to next message
Eclipse UserFriend
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 13:58 Go to previous messageGo to next message
Eclipse UserFriend
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 15:09 Go to previous message
Eclipse UserFriend
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:RAP and OSGi Services
Next Topic:Use BrowserHistory for Favourites
Goto Forum:
  


Current Time: Wed Jul 23 16:17:30 EDT 2025

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

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

Back to the top