Change the color of the selected item in the listbox


Changing Selection Colour - List Box (from default blue) to another custom colour



<zk>

<style>
tr.z-listitem-seld { background-image:none ; background-color :
yellow;}
</style>

<hbox>
<zscript>
classes = new String[] { "College", "Graduate" };
grades = new Object[] { new String[] { "Best", "Better" },
new String[] { "A++", "A+", "A" } };
</zscript>
<listbox width="200px" forEach="${classes}">
<listhead>
<listheader label="${each}" />
</listhead>
<listitem label="${forEachStatus.previous.each}: ${each}"
forEach="${grades[forEachStatus.index]}" />
</listbox>
</hbox>
</zk>