| Reply | « Previous Thread | Next Thread » |
|
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);
}
}
Regards, Cosmin |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| 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 |