×
Namespaces

Variants
Actions

Archived:Setting numeric input mode as the default for Text Editors not possible in QWERTY keypad devices (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}}.

Setting the numeric input mode as the default input mode for Text Editors is not possible in S60 3rd Edition, S60 3rd Edition Feature Pack 1 devices that have a QWERTY keypad.

Article Metadata
Tested with
Devices(s): Nokia E61, Nokia E61i, Nokia E71
Compatibility
Platform(s): S60 3rd Edition, S60 3rd Edition, Feature Pack 1
S60 3rd Edition FP1
S60 3rd Edition (initial release)
Article
Keywords: RESOURCE DIALOG EDWIN control EAknEditorNumericInputMode
Created: User:Technical writer 1 (26 Nov 2008)
Last edited: hamishwillee (21 Jun 2012)

Description

On QWERTY keypad devices, there is no user-selectable numeric input mode available. The numeric input mode input is used only in the numeric editors in these devices and it is not possible to set the default mode to numeric if the editor also allows text input.

How to reproduce

Resource for EDWIN control:

 RESOURCE DIALOG r_text_number_query
{
flags = EGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
items =
{
DLG_LINE
{
type = EAknCtQuery;
id = EGeneralQuery;
control = AVKON_DATA_QUERY
{
layout = EDataLayout;
control = EDWIN
{
width = 128;
lines = 1;
flags = EEikEdwinOnlyASCIIChars ;
default_input_mode = EAknEditorNumericInputMode;
default_case = EAknEditorTextCase;
allowed_case_modes = EAknEditorAllCaseModes;
numeric_keymap = EAknEditorStandardNumberModeKeymap;
allowed_input_modes = EAknEditorAllInputModes;
special_character_table = R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG;
};
};
}
};
}

The code snippet to display the query dialog using the above resource:

 void ShowQueryDialogL()
{
TBuf<128> buffer;
CAknTextQueryDialog* Dialog =
CAknTextQueryDialog::NewL(buffer);
Dialog->PrepareLC(R_TEXT_NUMBER_QUERY);
Dialog->SetPromptL(_L("Enter Text"));
TInt ret = Dialog->RunLD();
if(ret !=KErrNone)
{
CEikonEnv::Static()->InfoWinL(_L("Entered Text: "),buffer);
}
}

The above code snippet displays a query dialog with numeric input mode in all S60 3rd Edition devices except for QWERTY keypad devices, such as the Nokia E61 and Nokia E71.

Solution

No solution available.

This page was last modified on 21 June 2012, at 06:26.
41 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.

×