×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:CustomItem extension using setClip() paints over Form components in Series 40 (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search
Forum Nokia KB (Talk | contribs)
Forum Nokia KB (Talk | contribs)
Line 1: Line 1:
[[Category:Java ME]][[Category:MIDP 2.0 ]][[Category:MIDP 2.1 ]][[Category:Known Issue]]
+
[[Category:Java ME]][[Category:MIDP 2.0 ]][[Category:MIDP 2.1 ]][[Category:Known Issue]][[Category:Series 40]]
 
{{KBKI}}
 
{{KBKI}}
 
__NOTOC__
 
__NOTOC__

Revision as of 10:25, 25 August 2008

Template:KBKI


ID KIJ001082 Creation date August 25, 2008 
Platform Series 40 platform editions prior to Series 40 6th Edition  Devices All devices prior to Series 40 6th Edition 
Category Java ME  Subcategory MIDP 2.0, MIDP 2.1 

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.

115 page views in the last 30 days.
×