Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Multi monitor support
Multi monitor support [message #1691725] Thu, 09 April 2015 09:53 Go to next message
Bart Cichy is currently offline Bart CichyFriend
Messages: 13
Registered: March 2015
Location: Poland
Junior Member
Hello,
I can't find any information how to open trimmed window / window on second screen. Is there any suppor e(fx)clipse/eclipse/e4?
Re: Multi monitor support [message #1691739 is a reply to message #1691725] Thu, 09 April 2015 11:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
There's no dedicated API to open a window on another screen, you simply
need to set the x/y coordinates. To find out abou screens you need to
use the Screen-API.

It might be that we add API for Screen managing eg when you shutdown you
application in a 2 screen setup but restore it on a 1 screen setup we
will make sure to position the screens back to visible area instead of
keeping them off-screen.

Tom

On 09.04.15 11:53, Bart Cichy wrote:
> Hello,
> I can't find any information how to open trimmed window / window on
> second screen. Is there any suppor e(fx)clipse/eclipse/e4?
Re: Multi monitor support [message #1691750 is a reply to message #1691739] Thu, 09 April 2015 13:29 Go to previous messageGo to next message
Bart Cichy is currently offline Bart CichyFriend
Messages: 13
Registered: March 2015
Location: Poland
Junior Member
Thanks for this; when window are already open, to "move it" i do:
windowActive.setX( (int)Screen.getScreens().get( 1 ).getVisualBounds().getMinX() );
windowActive.setY( (int)Screen.getScreens().get( 1 ).getVisualBounds().getMinY() );
windowActive.setRenderer( windowActive.getRenderer() );


But when I want to maximize window i try to
windowActive.getTags().add( "shellMaximized" );

and i have to do:
windowActive.setToBeRendered( false );
windowActive.setToBeRendered( true );
Is there any other option to maximized it?
Unfortunately even the window are moved to second screen, they are maximized on first screen... (i suppose, that one option is set x/y/width/height, not shellMazimized - am i right?).

Regards
Re: Multi monitor support [message #1691757 is a reply to message #1691750] Thu, 09 April 2015 13:43 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
[...]

> But when I want to maximize window i try to
>
> windowActive.getTags().add( "shellMaximized" );
>
> and i have to do:
>
> windowActive.setToBeRendered( false );
> windowActive.setToBeRendered( true );
> Is there any other option to maximized it?

It looks like we are not tracking the tag you should not need to flip
the rendering. Please file a bug.

> Unfortunately even the window are moved to second screen, they are
> maximized on first screen... (i suppose, that one option is set
> x/y/width/height, not shellMazimized - am i right?).
>

I guess the problem is one of the order, we first set the maximized flag
before setting the x/y so the window is maximized at the wrong screen.

Please file a bug for that as well!

Tom
Re: Multi monitor support [message #1691844 is a reply to message #1691757] Fri, 10 April 2015 06:47 Go to previous messageGo to next message
Bart Cichy is currently offline Bart CichyFriend
Messages: 13
Registered: March 2015
Location: Poland
Junior Member
So windowActive.setRenderer( windowActive.getRenderer() ); is good practice to move window (after ser new x/y coordinates)?

Regards
Re: Multi monitor support [message #1691873 is a reply to message #1691844] Fri, 10 April 2015 09:04 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
No - this should never be required or better said it is just plain wrong
because the renderer has to be handled by the framework it's not up to
you to modify it!

Tom

On 10.04.15 08:47, Bart Cichy wrote:
> So windowActive.setRenderer( windowActive.getRenderer() ); is good
> practice to move window (after ser new x/y coordinates)?
>
> Regards
Previous Topic:How to check is MPart hiden/closed?
Next Topic:Using e(fx)clipse on runtime
Goto Forum:
  


Current Time: Sat Apr 27 00:13:19 GMT 2024

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

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

Back to the top