简体   繁体   English

SWT微调器-隐藏按钮

[英]SWT Spinner - Hiding Buttons

Is there any possibility to hide/remove the buttons of the org.eclipse.swt.widgets.Spinner control without completely reimplementing it? 是否有可能在不完全重新实现的情况下隐藏/删除org.eclipse.swt.widgets.Spinner控件的按钮?

The easiest way I can think of would be a style-Flag but I was not able to find one which influences the buttons. 我能想到的最简单的方法是使用样式标记,但是我找不到能够影响按钮的样式。

Maybe it is not possible at all since the OS manages the implementation of those controls. 也许根本不可能,因为操作系统管理着这些控件的实现。

Looking at the source of the Spinner class there is no support for leaving out the buttons. 查看Spinner类的源代码,不支持省略按钮。

I looked at the Mac, Windows and Linux versions of the source. 我查看了源代码的Mac,Windows和Linux版本。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM