Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor jinuthomas's Avatar
    Join Date
    Mar 2008
    Posts
    226
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    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 jinuthomas's Avatar
    Join Date
    Mar 2008
    Posts
    226
    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 Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,664
    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. Can theme change the Navigation Icons for Mobile?
    By ankit11 in forum Themes/Carbide.ui
    Replies: 1
    Last Post: 2009-01-22, 10:30
  3. 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
  4. help with change menu icons
    By lee.purdy in forum Themes/Carbide.ui
    Replies: 1
    Last Post: 2008-09-26, 16:30
  5. 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
  •  
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