×
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
extkbeditor2 (Talk | contribs)
m
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot change of template (Template:KnowledgeBase) - now using Template:ArticleMetaData)
Line 3: Line 3:
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
{{KnowledgeBase
+
{{ArticleMetaData
 
|id=KIJ001082
 
|id=KIJ001082
 
|platform=Series 40 platform editions prior to Series 40 6th Edition
 
|platform=Series 40 platform editions prior to Series 40 6th Edition
Line 11: Line 11:
 
|creationdate=August 25, 2008
 
|creationdate=August 25, 2008
 
|keywords=
 
|keywords=
 +
 +
|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]]) -->
 +
|sdk=<!-- SDK(s) built and tested against (e.g. [http://linktosdkdownload/ Nokia Qt SDK 1.1]) -->
 +
|devicecompatability=<!-- Compatible devices (e.g.: All* (must have GPS) ) -->
 +
|signing=<!-- Empty or one of Self-Signed, DevCert, Manufacturer -->
 +
|capabilities=<!-- Capabilities required (e.g. Location, NetworkServices.) -->
 +
|author=[[User:Technical writer 1]]
 
}}
 
}}
  

Revision as of 14:40, 24 June 2011

Template:KBKI


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 (24 Jun 2011)

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.

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

×