ListBox doesnt display items

Login to reply to this topic.
Sun, 2008-06-29 11:19
Joined: 2008-06-29
Forum posts: 4

Hello Everybody,

I am a new to Symbian C++ programming , but i have a strange issue regarding this ,,
i have a List Box with two items, but when i am trying to scroll these items ,,no item is displayed ,, and this is my code for this ,,, and i am sure that there is no missing or incorrect code ,,, but i dont know why it did not worked,,,,

m_pEdNumberCC = new (ELeave) CEikTextListBox ;
m_pEdNumberCC->SetContainerWindowL(*this);
m_pEdNumberCC->ConstructL(this);
m_pEdNumberCC->SetBorder(TGulBorder::EWithOutline|TGulBorder::EShallowRaised);
m_pEdNumberCC->CreateScrollBarFrameL(ETrue);

m_pEdNumberCC->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto);

m_pEdNumberCC->SetListBoxObserver( this ) ;
m_pEdNumberCC->UpdateScrollBarsL() ;
m_pEdNumberCC->SetMopParent( this );

((CEikColumnListBox*)m_pEdNumberCC)->ItemDrawer()->SetFont( LatinBold12() ) ;

((CDesCArray*)((CEikTextListBox*) m_pEdNumberCC)->Model()->ItemTextArray())->AppendL(_L("+962"));

((CDesCArray*)((CEikTextListBox*) m_pEdNumberCC)->Model()->ItemTextArray())->AppendL(_L("+971"));

m_pEdNumberCC->HandleItemAdditionL() ;

Your help will be greatly appreciated ,,

Regards,
Leonard


Impossible is nothing

  • Login to reply to this topic.