You Are Here:

Community: Developer Discussion Boards

#1 Old S60 CustomItem paint - 2009-06-04, 14:27

Join Date: Apr 2009
Posts: 13
cosminr
Offline
Registered User
Hello,

I am trying to implement a CustomItem. It seems that the paint(Graphics, int, int) is never invoked on my item. The same code runs ok in the default emulator and sony ericsson emulator.

Here is a print screen of the three emulators.
http://cosminr.home.ro/emulators.png

The code of my custom item is:

Code:
public class DummyItem extends CustomItem {
    
    public DummyItem(String label) {
        super(label);
    }

    protected int getMinContentWidth() {
        return 240;
    }

    protected int getMinContentHeight() {
        return 60;
    }

    protected int getPrefContentWidth(int arg0) {
        return 240;
    }

    protected int getPrefContentHeight(int arg0) {
        return 60;
    }

    protected void paint(Graphics g, int w, int h) {
        g.setColor(0x00000000);
        g.fillRect(0, 0, w, h);
        g.setColor(0xFF888888);
        g.fillRect(10, 10, w - 10, h - 10);
    }
    
}
Any hints are greately appreciated.

Regards,

Cosmin
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
3rd and 5th Edition application development liuxg Symbian 146 2009-10-20 09:10
Audio Routing API for S60 5th heuven Symbian User Interface 6 2009-02-15 00:39
my CustomItem does not paint properly Olnex Mobile Java General 0 2008-01-10 01:06
Mimicing EikStart::RunApplication() on S60 2nd ruslan.zalata General Symbian C++ 2 2007-11-14 05:52
Mail Sync for S60 / S60 3rd Devices bmenke PC Suite API and PC Connectivity SDK 4 2006-09-17 07:24

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia