×
Namespaces

Variants
Actions

Archived:Incorrect behavior of CAknGrid in the Nokia N95 (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Drawing the grid when the cell in focus is changed a number of times causes erroneous behavior.

Article Metadata
Tested with
Devices(s): Nokia N95, Nokia E90 Communicator
Compatibility
Platform(s): S60 3rd Edition, FP1
Symbian
S60 3rd Edition FP2
S60 3rd Edition FP1
Article
Created: User:Technical writer 1 (18 Dec 2007)
Last edited: hamishwillee (19 Jun 2012)

Description

Implementing a grid with CAknGrid as in the FileList example application in the SDK causes incorrect behavior when the cell in focus is changed a number of times. The last 2 cells (on the right-hand side of the screen) are not redrawn properly and become white gradually (because of being highlighted a number of times).

How to reproduce

  1. Launch the FileList example application in portrait mode.
  2. Switch to landscape mode.
  3. Change the cell in focus a number of times.

Some of the cells are not redrawn properly.

Solution

The issue can be solved by calling CFormattedCellListBoxData::SetSkinStyle()in its SizeChanged() method. Normally lists and grids have code in their SizeChanged() implementation which calls SetSkinStyle():

void CGridExContainer::SizeChanged()
{
...
iGrid->ItemDrawer()->FormattedCellData()->SetSkinStyle(&KAknsIIDQsnBgAreaMain,
Rect());
...
}
This page was last modified on 19 June 2012, at 08:06.
22 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×