views:

31

answers:

2

I would like to have some of the controls in an app - Buttons and Labels - vertically oriented - . However i could not find a possibilty to do this. Even the non-public setOrientation method tackles only the left-to-right orientation. Is it possible without implementing a custom Button or deriving from Canvas?

+1  A: 

SWT uses the standard widgets provided by the host operating system. So if the operating system does not provide support for vertically oriented controls, SWT can't provide it too.

Andreas_D
+1  A: 

As far as I know vertical orientation for Button and Label is not possible. You will need to provide custom implementation for same. Check this link http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg30094.html

YoK
its a shame, but ill have do do it myself :( maybe e4 will improve on that
kostja
@kostja - e4 will still use SWT and native controls. As long as those native controls don't provide vertical orientation or some sort of rotation of controls or components, there's no way other then fully java based controls (like Swing)
Andreas_D