如何在 Smart Mobile Studio 2.2.4 中更改 TW3HeaderControl 的文本样式....?

How to change the style of a TW3HeaderControl's text in Smart Mobile Studio 2.2.4....?

短信 2.2.4.......

使用以下 CSS:

.lblHeader{
  color: #005CB9;
}

如果我在表单上放置一个 TW3Label 并设置它的 StyleClass = lblHeader';

它工作正常。

但是,如果我尝试更改 headercontrol 上的样式 class,它不起作用。

W3HeaderControl1.Title.StyleClass:= 'lblHeader';

我在 InitializeFormInitializeObjects 方法中都试过了,但仍然没有!诀窍是什么? :)

谢谢

感谢短信社区论坛的warleyalex,答案是:

运行时间:

w3_setStyle(W3HeaderControl1.Handle.childNodes[0], 'color', '#005CB9');

设计时

.TW3HeaderControl fieldset{
  color: #005CB9 !important;
}