列标题SWT中的控件(组合,广播,文本) [英] Controls (Combo, Radio, Text) in column header SWT

查看:305
本文介绍了列标题SWT中的控件(组合,广播,文本)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在到处搜索,但是找不到解决方案,也找不到答案.

I've been searching everywhere, but I can't find a solution, nor an answer.

可以在SWT中将自定义控件/小部件放置在表格的列标题中吗?

我可以将这些控件放在第一行,但这不是解决方案,因为滚动.

I can put those controls in the first row, but that is not the solution, because of the scrolling.

之所以需要这样做,是因为我正在导入CSV文件,但是有时其中的列与以前的顺序不同,所以我想给用户一个选项来设置哪个列用于什么(单选按钮或组合键).

The reason for the need is because I'm importing a CSV file, but sometimes the columns in it aren't in the same order as before, so I want to give the user an option to set which column is for what (Radio Buttons or Combo).

谢谢.

推荐答案

不,您不能.通常,如果SWT小部件受SWT支持的所有操作系统和窗口系统的本地支持,则只能对其进行操作.

No, you can't. Generally, you can only do something with an SWT widget if it's supported natively by all OSes and window systems SWT supports.

这篇关于列标题SWT中的控件(组合,广播,文本)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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