×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    6

    Image not drawn on custom listbox

    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
    Join Date
    Jul 2007
    Location
    Dublin
    Posts
    240

    Re: Image not drawn on custom listbox

    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
    Join Date
    Mar 2008
    Posts
    1,481

    Re: Image not drawn on custom listbox

    Hi Datha,
    Have you tested the solution you mentioned?

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    6

    Re: Image not drawn on custom listbox

    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
    Join Date
    Mar 2009
    Location
    Delhi
    Posts
    223

    Re: Image not drawn on custom listbox

    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 Symbian
    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
  •  
×