I had been searching it in forum and wiki but I cant find it. I would like do diferent thing depend the item select, then I associate a event to the Listbox (which will be the correct?) I have now EventMouseButtonDown, then in my HandleListbox I have this, dont work so it is not the right code:
Code: Select all
if (itemp1->isSelected()){
pos1->setText("One thing");}
else if (itemp2->isSelected()){
pos1->setText("another thing");}
pos1 is a editbox and itemp1 & itemp2 are items from listbox.
Always show me in the editbox "One thing"