Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User swasaa's Avatar
    Join Date
    Sep 2007
    Posts
    6
    Hi,

    We have customised a Listbox where we are customizing only one of the item in list box.
    The list box is CAknDoubleGraphicStyleListBox .
    And in the DrawActualItem() method we are customizing only one Listitem suppose with ItemIndex as 3.
    The problem we have here is if we draw a icon(using BitBilt) directly in the ItemIndex 3 without drawing any icons of ItemIndex 1 & 2(non customized items in the list) then we are not getting the Icon in ItemIndex 3,but if we draw the icon for 1st or 2nd non customised item of the list then we are able to draw the icon on the 3rd Item of the list.

    Can anybody please help.

    Thnx,
    swasaa

  2. #2
    Regular Contributor datha_k's Avatar
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240
    Hi,
    I think you need to do something link below...
    Code:
    void CMyItemDrawer::DrawActualItem ( TInt aItemIndex,
    const TRect & aActualItemRect,
    TBool aItemIsCurrent,
    TBool aViewIsEmphasized,
    TBool aViewIsDimmed,
    TBool aItemIsSelected
    ) const {
    if (aItemIndex == 3) {
    //  .. Draw custom drawing here
    }
    else {
      CFormattedCellListBoxItemDrawer::DrawActualItem(aItemIndex, aActualItemRect, aItemIsCurrent,
        aViewIsEmphasized, aViewIsDimmed, aItemIsSelected);
    }
    }
    More on custom drawing is also in thread http://discussion.forum.nokia.com/fo...ad.php?t=85954

    -Datha

  3. #3
    Super Contributor mahbub_s60's Avatar
    Join Date
    Mar 2008
    Posts
    1,481
    Hi Datha,
    Have you tested the solution you mentioned?

  4. #4
    Registered User swasaa's Avatar
    Join Date
    Sep 2007
    Posts
    6
    I am able to solve that problem now without any code changes.I think the icon which I used previously was not supporting it.

  5. #5
    Regular Contributor poojs's Avatar
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223
    how can u solved your problem.. kindly explain
    Thanx
    Pooja

Similar Threads

  1. skin not displayed in custom listbox....
    By Neelakantan in forum Symbian User Interface
    Replies: 10
    Last Post: 2010-06-20, 09:14
  2. how to remove lines drawn on an image.
    By Davie1 in forum Python
    Replies: 7
    Last Post: 2009-01-16, 13:41
  3. Opening a JPEG Image
    By ummarbhutta in forum Mobile Java Media (Graphics & Sounds)
    Replies: 8
    Last Post: 2007-02-15, 06:34
  4. Using skins! Custom Listbox / Custom ListItemDrawer
    By akrapacs in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-01-22, 10:05
  5. Nokia Image Converter
    By davidpurdie in forum General Development Questions
    Replies: 0
    Last Post: 2004-02-18, 15:31

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved