I would like to have some of the controls in an app - Button
s and Label
s - 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
?
views:
31answers:
2
+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
2010-10-01 10:05:50
+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
2010-10-01 10:31:54
its a shame, but ill have do do it myself :( maybe e4 will improve on that
kostja
2010-10-01 11:29:39
@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
2010-10-04 06:38:33