Namespaces
Variants
Actions
Revision as of 16:09, 23 April 2012 by lpvalente (Talk | contribs)

Archived:CustomItem extension using setClip() paints over Form components in Series 40 (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}}.

The article is believed to be still valid for the original topic scope.


Article Metadata

Tested with
Devices(s): All devices prior to Series 40 6th Edition

Compatibility
Platform(s): Series 40 platform editions prior to Series 40 6th Edition

Article
Created: User:Technical writer 1 (25 Aug 2008)
Last edited: lpvalente (23 Apr 2012)

Contents

Overview

The extension of the clipping area paints CustomItem over MIDP 2.0 and MIDP 2.1 high-level API items on Form in Series 40.

Description

When the clipping area of the y coordinate is extended (for example, y=80), the CustomItem object is painted over MIDP 2.0 and MIDP 2.1 high-level API items on Form.

How to reproduce

For example, implement a MIDlet using two TextField items and one CustomItem item. Include them on the Form in the following top-down order: TextField, CustomItem, TextField.

To test this issue, paint the CustomItem and set the clipping area using the following code snippet:

 Image im;
 
...
 
try {
im = Image.createImage("/filename.png");
} catch (IOException ex) {
ex.printStackTrace();
}
...
 
protected void paint( Graphics g, int width, int height ) {
g.setClip(0, 80, width, height);
g.drawImage (im, 0, 80,Graphics.TOP| Graphics.LEFT);
}

Solution

This issue has been fixed starting from Series 40 5th Edition Feature Pack 1.

176 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