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
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant
Accepted Solution

Rollover icon

Hello experts!

 

It´s a worn subject, but doesn´t work to me.

 

Let me show the problem: I have an application that i have configured the rollover icon on eclipse properties, i´m use 4.612 at blackberry OS and my application, but, when i set the cursor on icon does not change the icon with defined rollover icon configured.

 

Somebody can help me?

 

Regards, Rampelotti

Developer
Posts: 588
Registered: ‎05-29-2009
My Device: 9100

Re: Rollover icon

I usually do this in my main class and it works out.

 

      Bitmap regIcon = Bitmap.getBitmapResource("icon.png");
      Bitmap icon =       Bitmap.getBitmapResource("icon_roll_over.png");
      HomeScreen.setRolloverIcon(icon);
      HomeScreen.updateIcon(regIcon);

Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: Rollover icon

Check this developer resource for the basics:

http://supportforums.blackberry.com/t5/Java-Development/Define-a-rollover-icon-for-an-application/ta...

 

in my experience you sometimes have to use the two parameter version of setRolloverIcon and updateIcon, using 0 (or 1 etc) as a second parameter, depending on the number of entry points and the position of the one with the icon.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Regular Contributor
Posts: 66
Registered: ‎05-26-2010
My Device: 9000 Bold
My Carrier: SAP NetWeaver Mobile Technology Consultant

Re: Rollover icon

It´s my solution because i have a enter point.. thanks a lot.

 

Regards, Rampelotti