Hi,
I'm porting a Midlet (based on Canvas) to BB. No big problem, except I don't manage to get the BB menu style (primary vs fullmenu) with the menu key and cursor key.
As I understood (i'm newbie in BB API), I MUST use a Screen (from the BB API) to get the fancy BB menu. Right?
In order to achieve this, I try to create ONE GLOBAL invisible MainScreen which will call the correct Canvas to create the menu / paint the UI. The first part work fine.
The problem, is that: How to paint the canvas ?
So, I override the MainScreen.paint(). to clean the background (this works fine). Then, comes the real problem!
I was hopping to just "pass" the graphics to the canvas. but BB use an other class (with the same name).
So, somebody know how to:
- get the BB menu on a normal Canvas? (javax.microedition.lcdui.Canvas)
- Paint a normal Canvas from a MainScreen.paint() ?
- get a valide javax.microedition.lcdui.Graphics inside MainScreen.paint() ?
- an other way to achieve this?
any help / direction is more than welcome,
thanks in advance,
Loda
PS: I found some post talking about Manager. But, as I understood the doc, this does not really help me.