about display problem...

Login to reply to this topic.
Tue, 2005-08-23 12:35
Joined: 2005-08-04
Forum posts: 27
hello all

in my application there is two views. in on view i have created simply listbox and other view contain normal screen. but the listboxs are not displaying at the initial opening screen. but when i am pressing "Options" and then press "cancel" then the listboxes displaying properly. at the beginning the first listbox is displaying. what can be the problem??

my code is:

void CMyContainer::ConstructL(const TRect& aRect)
    {
   CreateWindowL();
   SetRect(aRect);

   iListBox = new (ELeave) CAknSingleStyleListBox;
   iListBox->ConstructL(this, 0);
   iListBox->SetContainerWindowL(*this);
   iListBox->SetRect(aRect.Size());

   iArray = new (ELeave) CDesCArrayFlat(4);   
   CleanupStack::PushL(iArray);
   iArray->AppendL(_L("\tItem1"));
   iArray->AppendL(_L("\tItem2"));
   iArray->AppendL(_L("\tItem3"));
   iArray->AppendL(_L("\tItem14"));
   CleanupStack::Pop();   
   iListBox->Model()->SetItemTextArray(iArray);
   iListBox->Model()->SetOwnershipType(ELbmDoesNotOwnItemArray);      
   iListBox->ActivateL();
   iListBox->SetListBoxObserver(this);
   MakeVisible(ETrue);
   ActivateL();
    }

i think the corresponding view class is ok

what can be the problem??


thanks
bashar

Wed, 2005-08-24 03:26
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: about display problem...
Call iListBox->HandleItemAdditionL() before calling iListBox->ActivateL()

Wed, 2005-08-24 06:43
Joined: 2005-08-04
Forum posts: 27
Re: about display problem...
hi

thanks for your advice. its working now.

now can anybody inform me how to remove application from emulator??

thanks
bashar
Wed, 2005-08-24 06:57
Forum Nokia Champion
Joined: 2004-05-26
Forum posts: 732
Re: about display problem...
Quote from: bashar
now can anybody inform me how to remove application from emulator??

Go to this path: %EPOCROOT%\Epoc32\release\wins\udeb\z\system\apps. There you wil find some folder's, delete the folder with the name of your application.

NB: I donno what'll happen if you delete default applications!! It is recomended to delete only the folder of the application that you have created.

Wed, 2005-08-24 08:02
Joined: 2005-08-04
Forum posts: 27
Re: about display problem...
hello vin2ktalks

thanks for your quick answer. it works nicely.

i hope i will learn lots of things from you.

thanks again

bashar
  • Login to reply to this topic.