×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    226

    Dynamic change of grid icons

    Hi,
    I am using CAknGrid in my application. I want to accomplish two things in the implementation.
    1. Change the icon dynamically for focusing(selection) and non focusing of each grid item.
    2. Change the colour of the selection rectangle to black.

    Someone pls help.

    Thanks,
    Jinu

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Dynamic change of grid icons

    Here's simple code for replacing the icon:

    CGulIcon* addIccon = CGulIcon::NewL(aImage,aMask);

    CArrayPtr<CGulIcon>* iccons = iGrid->ItemDrawer()->FormattedCellData()->IconArray();
    CGulIcon* tmpDelete = iccons->At(aIndex);

    iccons->Delete(aIndex);
    iccons->InsertL(aIndex,addIccon);

    delete tmpDelete;
    iGrid->DrawNow();

  3. #3
    Regular Contributor
    Join Date
    Mar 2008
    Posts
    226

    Re: Dynamic change of grid icons

    Hi,
    Thanks a lot for the reply. How can i trach the focus on a particular grid cell? I want to change the focus rectangle colour as well. Pls help

    Thanks,
    Jinu

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: Dynamic change of grid icons

    never tried that one, so I'm not having any examples fro that, thus you should propably check the sDK docs and study the API a bit more..

Similar Threads

  1. scrollbar with the grid
    By agirllikeyou in forum Symbian User Interface
    Replies: 9
    Last Post: 2010-02-05, 09:46
  2. Is it possible to change grid type of CAknGrid after construction
    By datha_k in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-01-17, 12:10
  3. Dynamic data in column lists with icons
    By lepo in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-10-10, 08:25

Posting Permissions

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