×

Discussion Board

Results 1 to 2 of 2

Thread: checked

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    20

    checked

    void CListingContainer::markItemInList()
    {

    TBuf<300> temp;

    TInt itemNumber = iList->CurrentItemIndex();
    temp.Copy((*iListItems)[itemNumber]);
    if(temp.Left(1)!=_L("2")) /////// if format is 2\tlabel\t\t type
    { ///// icon index 2 means it contains checked icon
    TBuf<1> icon;
    icon.Copy(_L("1"));
    temp.Replace(0,1,icon);
    iListItems->Delete(itemNumber);
    iListItems->InsertL(itemNumber,temp);
    }
    else /////// if format is 1\tlabel\t\t type
    { ///// icon index 1 means it contains blank icon
    TBuf<1> icon;
    icon.Copy(_L("2"));
    temp.Replace(0,1,icon);
    iListItems->Delete(itemNumber);
    iListItems->InsertL(itemNumber,temp);
    }

    DrawNow();
    }

    TKeyResponse CListingContainer:: OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType)
    {
    if(aType != EEventKey)
    {
    return EKeyWasNotConsumed;
    }

    switch(aKeyEvent.iCode)
    {
    case EKeyUpArrow:
    case EKeyDownArrow:
    {
    iList->OfferKeyEventL(aKeyEvent,aType);
    break;
    }

    case EKeyOK:
    {

    markItemInList();

    return EKeyWasConsumed;
    }
    }
    return EKeyWasConsumed;
    }

  2. #2
    Regular Contributor
    Join Date
    Sep 2006
    Posts
    280

    Re: checked

    What is the question?

Similar Threads

  1. Counting index of checked list item
    By dubey_hbti27 in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-12-06, 09:46
  2. Checked menu item ?
    By heuven in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-01-13, 22:26
  3. SISAR utility requires a missing file...
    By rychan in forum Symbian Tools & SDKs
    Replies: 3
    Last Post: 2004-11-30, 15:59
  4. How can the field strength be checked?
    By Nokia_FAQ in forum Nokia M2M
    Replies: 1
    Last Post: 2002-05-14, 14:26

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •