hi,
i implimented a column listbox using CEikColumnListBox,
but when i am using it SetFocus(EFalse) function it focus is changed, but the item of list box is still selected.
Thanks
Vickey
hi,
i implimented a column listbox using CEikColumnListBox,
but when i am using it SetFocus(EFalse) function it focus is changed, but the item of list box is still selected.
Thanks
Vickey
Hi try this code for moving the focus in listbox..
TKeyResponse CContainerContainer::OfferKeyEventL(
constTKeyEvent& aKeyEvent,
TEventCode aType)
{
if (aType != EEventKey)
{
return EKeyWasNotConsumed;
}
// pass key press events to the listbox. It will typically
// consume Up,Down and Selection keys.
if (iListBox)
{
return iListBox->OfferKeyEventL(aKeyEvent, aType);
}
else
{
return EKeyWasNotConsumed;
}
}
Regards
Md.kashif
hi, thanks for the replay
but the problem is not that, problem is that when i am calling the function SetFocus(EFalse) of ListBox the focus is lost but it still show the listbox as 1 selected item
This works:
To disable Listboxes highlighting:Code:iFlags = iListBox->View()->ItemDrawer()->Flags(); iFlags |= CListItemDrawer::EDisableHighlight;
Code:iListBox->ItemDrawer()->SetFlags(iFlags)
To enable again
Code:iListBox->ItemDrawer()->ClearFlags(iFlags);
Regards,
Andi
I would have also tried redrawing after SetFocus.