Skip to main content


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: 1313
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: 150
Registered: July 2009
Location: College Station, TX
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:RAP and OSGi Services
Next Topic:Use BrowserHistory for Favourites
Goto Forum:
  


Current Time: Fri Apr 26 16:17:27 GMT 2024

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

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

Back to the top