×
Namespaces

Variants
Actions

Archived:Refreshing problem when using a status pane with small layout (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}}.

Applications using small status pane layout may experience a refreshing problem after launching a dialog containing EDWIN control(s).

Article Metadata
Compatibility
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Article
Created: User:Technical writer 1 (20 Aug 2007)
Last edited: hamishwillee (21 Jun 2012)

Description

When a small status pane with a signal pane is used in an application, the signal strength indicator is embedded in the status pane. If a dialog with an EDWIN control is launched, the text editor will hide the status pane automatically. However, after the dialog is dismissed, the status pane is displayed incorrectly, without the signal strength indicator.

How to reproduce

Create a small status pane by calling:

statusPane->SwitchLayoutL( R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE);

Launch a dialog with an EDWIN control inside it for taking user input. After launching the dialog, the status pane is overwritten by the text field and shows empty with a T9 indicator on the right side. Enter some input and press OK. The status pane is not returned back to original but is left empty.

Solution

There are two possible workaround solutions for this problem:

  1. From the dialog's OkToExitL() method, launch an AknNoteDialog with a short timeout period (for example, 1 µs) to reset the status pane, then call SwitchLayout() for the status pane again.
        CAknNoteDialog* pdlg = new (ELeave) CAknNoteDialog();
    pdlg->SetTimeout((CAknNoteDialog::TTimeout)1);
    pdlg->PrepareLC(R_SINGLEPAGE_DIALOG);
    pdlg->RunDlgLD();
    // sp is a pointer to status pane
    sp->SwitchLayoutL(R_AVKON_STATUS_PANE_LAYOUT_SMALL_WITH_SIGNAL_PANE);
    Resource definition for the note dialog:
        RESOURCE DIALOG r_singlepage_dialog
    {
    flags = EEikDialogFlagNoDrag |
    EEikDialogFlagFillAppClientRect |
    EEikDialogFlagCbaButtons |
    EEikDialogFlagWait;
    items =
    {
    DLG_LINE
    {
    type = EAknCtNote;
    id = ESomeLabel;
    control = AVKON_NOTE
    {
    layout = ETextualNotificationLayout;
    };
    }
    };
    }
  2. Start an active object with a timer (for example, 10 µs) in OkToExitL(). In RunL(), (when the timer expires) call SwitchLayoutL() for the status pane, as described above.
This page was last modified on 21 June 2012, at 05:19.
33 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.

×