Hi Philippe,
Thank you.
Juan FYI: The code in question is your style sheet support for PJSR section bars. Line 76 contains the call Color.rgbColorToHexString(fgColor) that failed. Apparently this call does not support DataType_UInt32 or the support is intermittent due to an unknown problem.
Thanks,
Mike
From the function SectionBar(parent) implementation:
#ifgteq __PI_BUILD__ 854
var bgColor =
Settings.readGlobal("InterfaceWindow/SectionBarColor", DataType_UInt32);
var fgColor =
Settings.readGlobal("InterfaceWindow/SectionBarTextColor", DataType_UInt32);
#else
// PJSR access to global settings is broken in PI 1.7
var bgColor = Color.rgbaColor(192, 192, 168, 255);
var fgColor = Color.rgbaColor(0, 0, 255, 255);
#endif
var contractIcon = new Bitmap(":/images/icons/contract_v.png");
var expandIcon = new Bitmap(":/images/icons/expand_v.png");
this.backgroundColor = bgColor;
this.focusStyle = FocusStyle_NoFocus;
this.label = new Label(this);
with (this.label) {
textAlignment = TextAlign_Left | TextAlign_VertCenter;
styleSheet =
"QLabel {" +
"color: " + Color.rgbColorToHexString(fgColor) + "; " +
"background: " + Color.rgbColorToHexString(bgColor) + ";" +
"}" +
"QLabel:disabled { " +
"color: gray;" +
"}";
}