×
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)
hamishwillee (Talk | contribs)
(9 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:For publishing]][[Category:Java ME]][[Category:MIDP 2.0 ]][[Category:MIDP 2.1 ]][[Category:Known Issue]]
+
{{Archived|timestamp=20120423130901|user=[[User:Lpvalente|Lpvalente]]}}
{{KBKI}}
+
[[Category:Java ME]][[Category:MIDP 2.0]][[Category:MIDP 2.1]][[Category:Known Issue]][[Category:Series 40]][[Category:Series 40 1st Edition]][[Category:Series 40 2nd Edition]][[Category:Series 40 3rd Edition (initial release)]][[Category:Series 40 3rd Edition FP1]][[Category:Series 40 3rd Edition FP2]][[Category:Series 40 5th Edition (initial release)]]
__NOTOC__
+
__NOEDITSECTION__
+
{|style="background:#eceff2" width="660px" border="1" cellpadding="5" cellspacing="0"
+
|-
+
|'''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.
+
{{ArticleMetaData <!-- v1.2 -->
 +
|sourcecode= <!-- Link to example source code (e.g. [[Media:The Code Example ZIP.zip]]) -->
 +
|installfile= <!-- Link to installation file (e.g. [[Media:The Installation File.sis]]) -->
 +
|devices= All devices prior to Series 40 6th Edition
 +
|sdk= <!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|platform= Series 40 platform editions prior to Series 40 6th Edition
 +
|devicecompatability= <!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|dependencies= <!-- Any other/external dependencies e.g.: Google Maps Api v1.0 -->
 +
|signing= <!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities= <!-- Capabilities required by the article/code example (e.g. Location, NetworkServices. -->
 +
|keywords= <!-- APIs, classes and methods (e.g. QSystemScreenSaver, QList, CBase -->
 +
|language= <!-- Language category code for non-English topics - e.g. Lang-Chinese -->
 +
|translated-by= <!-- [[User:XXXX]] -->
 +
|translated-from-title= <!-- Title only -->
 +
|translated-from-id= <!-- Id of translated revision -->
 +
|review-by= <!-- After re-review: [[User:username]] -->
 +
|review-timestamp= <!-- After re-review: YYYYMMDD -->
 +
|update-by= <!-- After significant update: [[User:username]]-->
 +
|update-timestamp= <!-- After significant update: YYYYMMDD -->
 +
|creationdate= 20080825
 +
|author= [[User:Technical writer 1]]
 +
<!-- The following are not in current metadata -->
 +
|subcategory= MIDP 2.0, MIDP 2.1
 +
|id= KIJ001082
 +
}}
  
== Description ==
+
==Overview==
 +
{{Abstract|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.
 
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 ==
+
==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.
 
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:
 
To test this issue, paint the CustomItem and set the clipping area using the following code snippet:
 
   
 
   
 +
<code java>
 
  Image im;
 
  Image im;
 
   
 
   
Line 44: Line 56:
 
  g.drawImage (im, 0, 80,Graphics.TOP| Graphics.LEFT);   
 
  g.drawImage (im, 0, 80,Graphics.TOP| Graphics.LEFT);   
 
  }  
 
  }  
 +
</code>
  
== Solution ==
+
==Solution==
 
+
This issue has been fixed starting from Series 40 5th Edition Feature Pack 1.
This issue has been fixed starting from Series 40 5th Edition, Feature Pack 1.
+

Revision as of 08:54, 28 June 2012

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}}.

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
CompatibilityArticle
Created: User:Technical writer 1 (25 Aug 2008)
Last edited: hamishwillee (28 Jun 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.

137 page views in the last 30 days.
×