简体   繁体   English

更改Eclipse RCP CSS中的样式位

[英]Changing style bits in eclipse rcp css

I have a question about changing the style of SWT controls via css in eclipse rcp applications. 我有一个关于在Eclipse rcp应用程序中通过CSS更改SWT控件样式的问题。

When I activate css spy I can see that my control has some style bits set in the css rules window on the bottom right (eg SWT.LEFT_TO_RIGHT ). 当我激活CSS间谍程序时,我可以看到我的控件在右下角的CSS规则窗口中设置了一些样式位(例如SWT.LEFT_TO_RIGHT )。 This was determined upon the Control's costruction. 这是由控制人员的共同决定的。

Can this style bit be changed via css? 可以通过CSS更改此样式吗? A concrete example will be helpful. 一个具体的例子会有所帮助。 Thanks! 谢谢!

Style bits can't be controlled from CSS. 样式位无法通过CSS进行控制。 SWT style bits can only be specified when the control is created and CSS is not used at that point. 仅当创建控件并且此时不使用CSS时才能指定SWT样式位。

You can use the style bits in CSS selectors to control which CSS is used. 您可以使用CSS选择器中的样式位来控制使用哪个CSS。

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

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