KoolComboBox supports item template, in which we can define our own item's display. To use this feature, you need to set your template to itemTemplate property of KoolComboBox's instance. Above example show you how to add image to item.
When an item is rendered, KoolComboBox will read the itemTemplate and start fill in data to placeholder of template.
<?php
require $KoolControlsFolder."/KoolComboBox/koolcombobox.php";
$kcb = new KoolComboBox("kcb");
$kcb->scriptFolder = $KoolControlsFolder."/KoolComboBox";
$kcb->styleFolder= "inox";
$kcb->width = "160px";
$kcb->itemTemplate = "<table><tr><td valign='middle' style='width:22px;height:20px;'><img src='../../Resources/Flags/{image}' alt='{text}' title='{text}' /></td><td valign='middle'>{text}</td></tr></table>";
$kcb->addItem("Canada","Canada",array("image"=>"flag_canada.png"),true);
$kcb->addItem("Finland","Finland",array("image"=>"flag_finland.png"));
$kcb->addItem("France","France",array("image"=>"flag_france.png"));
$kcb->addItem("Germany","Germany",array("image"=>"flag_germany.png"));
$kcb->addItem("Great Britain","Great Britain",array("image"=>"flag_great_britain.png"));
$kcb->addItem("USA","USA",array("image"=>"flag_usa.png"));
?>
<form id="form1" method="post">
<div style="padding-left:10px;">
Which country you want to visit?
</div>
<div style="padding:10px;">
<?php echo $kcb->Render();?>
</div>
</form>