Jump to content
gc8

Listbox selected item color

Recommended Posts

Hi

is it possible to change the color of selected listbox item?

 

I tried these commands to no avail:

_ctrl = _display displayCtrl 1502;    // CT_LISTNBOX
_ctrl ctrlSetActiveColor [1, 0, 0, 1];
_ctrl lbSetSelectColor [0, [0, 1, 0, 1]];
_ctrl lbSetColor [0, [0, 1, 0, 1]];
_ctrl ctrlSetForegroundColor [1, 0, 0, 1];
_ctrl ctrlSetTextColor [1, 0, 0, 1];
_ctrl lbSetSelectColorRight [0, [0, 1, 0, 1]];

thx!

 

Share this post


Link to post
Share on other sites

I can get the other select color working with class entry but not the second, it remains white text

 

 

class EquipDlgList : RscListBox
{
	colorSelect[] = // Doesn't work
	{
		0,
		0,
		1,
		1
	};
	colorSelect2[] = 
	{
		1,
		0,
		0,
		1
	};
};

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×