The documention for DialogListSubItem shows style
instead of styles
as in the release notes. styles
is correct.
properties fg
bg
styles
not working from initial tests.
property text
is working.
will check it some more in the coming days, perhaps some working code (jscript preferably) from your end would help ?
Leo
January 31, 2025, 6:21pm
2
Thanks! Docs have been fixed.
I think I've seen people using fg
and bg
already with success, unless I'm confusing them with something else we added recently.
Do you have a simple example script that shows the problem?
The script I was testing it with is not simple.
here is simple test script, called with command DialogListSubItem
test DialogListSubItem.opusscriptinstall (1.9 KB)
relevant code at line 70ish (VSCode)
// column 2
var column2 = listview.GetItemAt(main_column).subitems(0); // DialogListSubItem object
column2.fg = '#ffff00';
column2.bg = '#00ff00';
column2.styles = 'i';
column2.text = 'AAAAAA';
// column 3
var column3 = listview.GetItemAt(main_column).subitems(1); // DialogListSubItem object
column3.fg = '#00ffff';
column3.bg = '#0000ff';
column3.styles = 'b';
column3.text = 'BBBBBB';
Jon
February 1, 2025, 4:59am
4
Looks like copy paste issue, your column 3 test is mostly referencing column2.
Thanks - have replaced the script with new fixed version and changed the code snippet - the results look more promising but still getting an error in column 2.
Addendum
There is no way to change those proerties for colunm 1 (the first column)