リストボックス内の特定のアイテムのフォントの色を制御する創造的な方法はありますか?リストボックス内のリスト全体にフォントの色を送信する方法は知っていますが、これをたとえばリスト内の単一の項目に適用できるかどうか興味がありました。
thx、DJ
テーブルボックス内で列ボックスを使用すると、さまざまな色を得ることができます。 同様に見える-ここに例があります。
n1_list = [1, 2, 3, 4];
c1_list = {"XXX", "YYY", "ZZZ", "WWW"};
tb_list = {};
cb = col box("String1");
for (i = 1, i <= nitems(c1_list), i++,
tb_list[i] = text box(c1_list[i]);
cb << append(tb_list[i]);
);
// Change the color of the third item
tb_list[3] << font color("Red");
nw = new window("Test Color Listbox",
tb = table box(
number col box("Index", n1_list),
cb
)
);
tb << Set Selectable Rows(1);
tb << set row change function(
Function( {this},
row_list = this << get selected rows;
if (nrows(row_list) > 0,
one_row = row_list[1];
show(one_row, c1_list[one_row]);
);
);
);