Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » Setting orientation
Setting orientation [message #718596] Wed, 24 August 2011 15:34 Go to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
Hi,

I noticed that on several controls (in SWT Designer) the "orientation" property is shown only as an integer, instead of showing the RIGHT_TO_LEFT/LEFT_TO_RIGHT constants.

The textbox control shows it properly, but the Button and Label (and others), do not.
Re: Setting orientation [message #718607 is a reply to message #718596] Wed, 24 August 2011 16:12 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
OK, Eclipse 3.7 adds this property for Control, so we should declare it there too.
Fixed in trunk.


Konstantin Scheglov,
Google, Inc.
Re: Setting orientation [message #719560 is a reply to message #718607] Sat, 27 August 2011 16:46 Go to previous messageGo to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
By the way, there seems to be a drawing issue with RTL shells using GridLayout.

I set shell.setOrientation(SWT.RIGHT_TO_LEFT); in the source, and then added some buttons, and i noticed that the grid itself is still being drawn on the left side of the screen. The controls on the other hand, were placed correctly.
Re: Setting orientation [message #719668 is a reply to message #719560] Sun, 28 August 2011 05:56 Go to previous messageGo to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
And another interesting problem, try adding a Composite to that RTL shell, and add a button the that composite. Moving the button around seems to be moving it to the opposite direction.
Re: Setting orientation [message #720161 is a reply to message #719668] Mon, 29 August 2011 22:28 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Do you use absolute layout?
Try to use GridLayout instead.


Konstantin Scheglov,
Google, Inc.
Re: Setting orientation [message #720205 is a reply to message #718596] Tue, 30 August 2011 02:12 Go to previous messageGo to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
GridLayout inside the main RTL shell and AbsoluteLayout inside the LTR composite will trigger the bug.

GridLayout in RTL shell and GridLayout in LTR composite will be ok.

But don't forgot the other bug I reported - when using a GridLayout on an RTL shell, the grid in WindowBuilder is being drawn as if it's LTR.
Re: Setting orientation [message #720945 is a reply to message #720205] Wed, 31 August 2011 10:18 Go to previous messageGo to next message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Can you please open bugs in Bugzilla, so that I did not forget them?

Yes, it seems that for GridLayout drop feedbacks are OK for RTL, but grid is displayed as for LTR.


Konstantin Scheglov,
Google, Inc.
Re: Setting orientation [message #721056 is a reply to message #720945] Wed, 31 August 2011 15:45 Go to previous messageGo to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
Bugs created:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=356398 - Controls in an RTL composite with AbsoluteLayout move to opposite direction
https://bugs.eclipse.org/bugs/show_bug.cgi?id=356399 - Grid drawn on the left side for RTL composites

Thanks!

Btw, when are you expecting to release an update?
Re: Setting orientation [message #721079 is a reply to message #721056] Wed, 31 August 2011 16:35 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric Clayberg
Messages: 847
Registered: July 2009
Location: Boston, MA
Senior Member
Caleb wrote on Wed, 31 August 2011 15:45
when are you expecting to release an update?

We have been releasing new integration builds rolling up all bug fixes pretty much every week.

Our next release build will come out when Eclipse 3.7.1 comes out.
Re: Setting orientation [message #721176 is a reply to message #721079] Thu, 01 September 2011 02:10 Go to previous messageGo to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
Eric, so to get the weekly builds I just have to open up Eclipse's "Install New Software" and choose "Eclipse 3.7 WindowBuilder Repo - http://download.eclipse.org/windowbuilder/WB/integration/3.7" ?

I noticed that you still offer to download WB from Google. Is "http://www.eclipse.org/windowbuilder/" the new home for WB?
Re: Setting orientation [message #721326 is a reply to message #721176] Thu, 01 September 2011 09:31 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric Clayberg
Messages: 847
Registered: July 2009
Location: Boston, MA
Senior Member
Caleb wrote on Thu, 01 September 2011 02:10
Eric, so to get the weekly builds I just have to open up Eclipse's "Install New Software" and choose "Eclipse 3.7 WindowBuilder Repo - http://download.eclipse.org/windowbuilder/WB/integration/3.7" ?

Yes.

Caleb wrote
I noticed that you still offer to download WB from Google.

That download also includes GWT Designer. The Eclipse download does not.

Caleb wrote
Is "http://www.eclipse.org/windowbuilder/" the new home for WB?

Yes. That has been the case for the last six months or so.
Re: Setting orientation [message #721340 is a reply to message #718607] Thu, 01 September 2011 10:08 Go to previous messageGo to next message
Caleb  is currently offline Caleb
Messages: 22
Registered: July 2009
Junior Member
Konstantin Scheglov wrote on Wed, 24 August 2011 16:12
OK, Eclipse 3.7 adds this property for Control, so we should declare it there too.
Fixed in trunk.


I've just updated to the latest build, and it seems that changing the orientation field once makes the combo box of the property remain stuck in the same position, no matter which other control you select.
Re: Setting orientation [message #721428 is a reply to message #721340] Thu, 01 September 2011 14:05 Go to previous message
Konstantin Scheglov is currently offline Konstantin Scheglov
Messages: 554
Registered: July 2009
Senior Member
Can not reproduce.
Do you have any exceptions in "Error Log" view?


Konstantin Scheglov,
Google, Inc.
Previous Topic:Exposing Shell's Styles by default
Next Topic:Component access from event methods (Anonymous class)
Goto Forum:
  


Current Time: Tue Jul 29 02:49:53 EDT 2014

Powered by FUDForum. Page generated in 0.02678 seconds