Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Visitor
Posts: 1
Registered: ‎03-04-2011
My Device: Not Specified

Trackball cursor not visible on canvas

 

I'm using a Canvas object to display a very simple game, and painting it with a solid background and a movable block.  I need the trackball cursor (the regular arrow pointing up-left) to be visible, and then to retrieve its position in pointerReleased.  How do I make it visible after my initial paint of the canvas?

 

protected void paint(Graphics g) {
        g.setColor(0x800080);
        g.fillRect(0, 0, getWidth(), getHeight());

 

// at this point the cursor is not visible.

 

Searched in the forum but couldn't find the answer - any help appreciated!