可以有垂直的SWT控件吗? [英] is it possible to have vertical SWT controls?

查看:64
本文介绍了可以有垂直的SWT控件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在应用程序中使用某些控件- Button s和 Label s-垂直定向-。但是我找不到做到这一点的可能性。甚至非公共setOrientation方法也只能处理从左到右的方向。
是否可以不执行自定义 Button 或从 Canvas 派生而来?

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?

推荐答案

据我所知,Button和Label的垂直方向是不可能的。
您将需要为其提供自定义实现。
检查此链接 http://dev.eclipse。 org / newslists / news.eclipse.platform.swt / msg30094.html

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

这篇关于可以有垂直的SWT控件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆