solotim
solotim

Reputation: 1866

SWT RowLayout right-to-left?

I've read the article Understand SWT Layout, but I cannot find a way to put several buttons in a container in right-to-left way.

How can I do this?

Upvotes: 5

Views: 2991

Answers (1)

Mohsen
Mohsen

Reputation: 3552

Right to left can be achieved through SWT.RIGHT_TO_LEFT flag passed to your container element. For example if you apply a RowLayout to a Composite, create Composite this way:

c = new Composite(shell, SWT.RIGHT_TO_LEFT);

Note that RTL is only implemented in Windows and Linux. Mac support is too limited (is only widget-level, not container-level).

Upvotes: 7

Related Questions