Multicolor listbox item
Posted: Tue 19 Nov, 2019 14:53
Within FAR itself (not in a plugin), is it possible to create a listbox with multicolor items? E.g. assume a listbox with three items:
I would like the number (1, 2 or 3) to use a different textcolor than the "item" prefix. The coloring should not have any side-effects, so using an & to "highlight" the number is out. But I am OK with just two colors, I don't need a fully generic solution. It seems to me that if I were writing a plugin, I could make use of DN_DRAWDLGITEM (and in FAR, presumably I could use the functions that get called when DN_DRAWDLGITEM is used - I didn't research which ones are these, yet), but I am not really at all certain. Can anyone confirm whether I am on the right track, please? Thanks.
Code: Select all
item 1 item 2 item 3