Namespaces
Variants
Actions

Archived:ItemStateListener and setConstraints behave incorrectly (Known Issue)

Jump to: navigation, search
Archived.png
Archived: 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}}.


Article Metadata

Tested with
Devices(s): Nokia N91, Nokia 6681, Nokia N72

Compatibility
Platform(s): S60 2nd Edition, S60 3rd Edition

Article
Created: User:Technical writer 1 (30 Mar 2007)
Last edited: hamishwillee (28 Jun 2012)

Contents

Overview

Inserting text to a textField whose constraints are set by choiceGroup and controlled by an itemStateListener does not work as supposed on S60 devices.

Description

If the current constraint of a textField is controlled by a choiceGroup and queried by an itemStateListener, the user cannot insert text into textField as normally. Inserting numbers (holding down the corresponding number key for a while) and special characters (from a menu) works, but inserting letters is impossible: the letter blinks on a screen for a brief moment and then disappears. The most recently inserted character also appears first in the string, which is the opposite of normal. If the user attempts to move the cursor manually to another position, it is automatically returned to the beginning of the field.

How to reproduce

Write a MIDlet with a couple of text fields whose constraints are controlled by a choiceGroup and queried by itemStateListener.

Solution

Do not use choiceGroup to control text fields. You can set the constraints of a text field directly to the text field control.

This page was last modified on 28 June 2012, at 08:25.
470 page views in the last 30 days.
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