Button screen bitmap PopUp do not use opaque background

I have a custom button png I created, it includes an opaque background. I use this button anywhere in my app and it works perfectly in the normal screens. However when I put them in the custom context menu screens, the opaque turns into a white color. I need to solve this problem. Please tell me any code you must see. Thank you!!

I think the problem might be in the substantive Manager, it's here for a normal screen:

this.getMainManager (.setBackground)
BackgroundFactory.createBitmapBackground (Bitmap.getBitmapResource ("background1.png")));

This is for a pop-up screen:

() this.setBackground
BackgroundFactory.createBitmapBackground (Bitmap.getBitmapResource ("backgroundProfile.png")));

For the pop-up screen, I can't use getMainManager(), and when I try to use getManager() gives me a nullPointer exception.

Please help, thanks

I mentined about that I wasn't convinced thuis was your problem, the important thing that I told you about PopupScreen was how to find the NManager.

That said, some of your code LabelField seems wrong:

Protected Sub paint (Graphics Graphics) {}
graph.fillRect (0, 0, getWidth(), getHeight());
graph.setColor (Color.RED);
Super.Paint (Graph);

You have not set a color for the first fillRect, so it will be whatever color the LabelField normally use, who is black.  So I think you're just lucky that your code works.

In the LabelField PopupScreen you added

graph.setBackgroundColor (Color.BLACK);

This in fact has no effect on the fileRect, but is effective the next graph.clear (), and then it will take your Bkacground color.

I would recommend that you change these two areas to do the following, which I think will give you black backgrounds and red text in both cases:

LabelField t1 = new LabelField ("Example")

Protected Sub paintBackground (Graphics Graphics) {}

try {}
graph.setBackgroundColor (Color.BLACK);

Graph.Clear ();

Protected Sub paint (Graphics Graphics) {}
graph.setColor (Color.RED);
Super.Paint (Graph);

If you make this change and corrects LabelField, perhaps a similar change will fix your buttons?

In fact, to make sure that your code has no effect in Sweden, I would like to change your code as follows:

LabelField t1 = new LabelField ("Example")

Protected Sub paint background (Graphics Graphics) {}

int currCol = graph.getBackgroundColor ();

try {}
graph.setBackgroundColor (Color.BLACK);

Graph.Clear ();

} {Finally

graph.setBackgroundColor (currCol);


Protected Sub paint (Graphics Graphics) {}

int currCol = graph.getColor ();

try {}
graph.setColor (Color.RED);
Super.Paint (Graph);

} {Finally

graph.setColor (currCol);


Tags: BlackBerry Developers

Similar Questions

  • events of button inside the popup does not close popup

    Hi all

    I have a requirement to create the popup to enter some lines. So I created integrated popup and I placed the table advanced inside the popup. Also, I placed a button (AddNewRow) with the partial action of fire in table advanced table actions. in the basic PFR page, I wrote for the event AddNewRow event action. Once I click on this button, its perfectly calling event written in base page. But the window closed. How to avoid close the pop up window because I have to do the creation of multiple line inside the popup.

    version: R12.1.3

    Please guide to achieve this.

    Thank you


    I achieved this goal by creating a button with partialFireAction event and event action written inside the window popup controller.

  • Having trouble installing Photoshop elements 13. [was: I wonder if I may be somehow went to creative cloud because something crossed my screen, but I'm not used to this do]

    I could really use help Service the customer. I got Photoshop Elements as a Christmas gift... I'm waiting until I got a new laptop so that I could use that as I had trouble with the old computer. However, I cannot install the software... I swear to you that the dvd has added programs, and I saw them in the files explore I think, but then I can't find I was not able to add the serial number to my knowledge, because it was empty... no strikes appeared... and I don't see the program anywhere... Did I get something wrong and it is somewhere in the cloud?

    You do not install in the cloud, so he won't be there anywhere.  If you have a Windows machine you can see the program appear in the-> Add/Remove Programs Control Panel?  If SO, right click on the headings in that table and choose more-> location and he can show you where each program is installed in another column

  • The button on my lockscreen does not work on my phone. Recently, my screen went completely black. I can turn on siri. How can I get my screen to turn back?

    My 5 IPhone lockscreen button does not work so I use touch help to the screen power off and screenshot. As I was using my phone my screen went completely black. I tried to plug it into a charger and call but the screen still won't turn. My phone vibrates when I call and I can't turn on siri. I tried to search the Internet on how to re-enable it. Everything I've seen involves using the screen lock button but obviously I can not use it. How do I reactivate it?

    Hello tumbler3100,

    Thank you for using communities Support from Apple!

    I understand that your iPhone screen is returned while you were using it and the on/standby button does more either. Because your iPhone is always vibrate when you call and you are able to use Siri, it seems there is a problem with the backlight on your iPhone.

    Because you have a separate hardware two related issues going on with your iPhone, I suggest putting your iPhone in an Apple Retail Store or Apple authorized service for an assessment of your device provider. More information about these options can be found in the following link.

    Apple - Support - Service Response Center

    See you soon!

  • Why can I not use whatever it is at the top of the screen for Mozilla Firefox 11?

    I can not use the top of the screen and so I had to go back to using internet explore instead.

    There are several extensions that have been known to cause this problem (Yahoo toolbar for one I think).

    Can you start Firefox in Safe Mode, and we can see if it works there? If so, you can start Firefox in normal mode and disable your extensions one by one until you find the culprit.

    If it doesn't work, let me know and we can figure out what might be causing the problem.

  • Why can I not use three fingers to drag an item on my screen?

    Why can I not use three fingers to drag an item on my screen?

    There is no option in the preferences system - trackpad.

    How can I go back to os x? I am not happy with El Capitan

    Thank you

    See here three-finger drag is gone in my macbook air?

  • Get blue screen. Reinstalled by the use of the recovery. Install IE6. Tried to re - install IE8. Does not accept. See below.

    Get blue screen.  Reinstalled by the use of the recovery.  Install IE6.  Tried to re - install IE8.  Does not accept.  The installation of SP3.  However, restart blue screen causes.  Able to install IE8.  Installed without windows updates.  I tried windows update on leOutilsmenu.  Cannot display the page.  Error #0x8007043C.  Expect the blue screen on the next reboot.  What should do?

    Hi Steve,.

    First of all, you seem to be under the misconception that a response is a response. On ths forum, an answer is an answer if it solves your problem. In this case I clearly have not solved your problem, and you should review my answers to "uncheck" them.

    IE6 does not work with this forum, and forum owners do not seem to appreciate how much of a problem, it's for people to re-setup of XP. I doubt they'll do something, even if they are aware of this gap.

    Go to your real problem, you can try Microsoft's solution for the HP patch...


    Please let us know how you go.


  • part of the screen lack sound as if all type of himself downplayed a little and does not use the entire screen

    I have a dell studio with vista, I shot it today and the far right 1/4 of my screen has disappeared, its like everything kind of himself downplayed a little and does not use the entire screen. I didn't change anything or add programs. someone has an idea?

    Hi musicwatkins

    Did you the latest changes on the computer?

    You can check if changing the resolution of the screen helps you solve the problem. See below for links-




    You can also check if the setting parameters of monitor, referring to the manual of the monitor will help you.


    I hope this helps.

  • XPS 8900 - you do not use a screen connected to a Nvidia GPU

    Just got my 8900 XPSA. If I try to access the Nvidia Control Panel, I get a message that I do not use a screen connected to a Nvidia GPU. I have a Nvidia GTX 745, which was last updated 25/08/16 pilots. It shows that it works in the Device Manager.

    What's your graphics card connected to the graphics card integrated on the motherboard? or the discreet graphics card.

  • How to disable the password screen when the computer is not used for a few minutes

    original title: password problems

    How can I stop my computer from ebb to needing a password, if not used for a few minutes

    Right-click your desktop image and select Customize,

    Click on the link at the bottom right, screen saver

    Uncheck the underlined

  • Hello - ideas as to the "cloud" icon why opens as a blank white screen - I can see the craft, but is not useful, cannot open apps - see if there are dates, add to my plan (to acquire more apps)-

    Hello - ideas as to the "cloud" icon why opens as a blank white screen - I can see the craft, but is not useful, cannot open apps - see if there are dates, add to my plan (to acquire more apps)-

    White screen


  • Using the email button for Xpress mail - is not an option in preferences

    I'm trying to fix the phone from my boss - his Xpress mail works from the screen - but the button on the phone is not mapped to this App Xpress Mail is not an option in the preferences box.

    any help is appreciated!

    Thank you


    OK - I've fixed it-it was defined that the calendar button linked to Xpress Mail, so he was not available for the other buttons. Everything has cleared up now...


    Message relates to: Centro (AT & T)

  • The same POPup can be used for the two buttons

    Hi all

    I'm looking for an application where I need to use the same popup for two different buttons. This popup has a form of the ADF. I want to use for the Insert on a table of the ADF operation. The requirement is something like below

    A JSF page should have an ADF read only table with 3 buttons Insert, read, delete respectively. Buttons Insert and should be using popup which the user can enter data and display the data respectively. I am

    way to a form of the ADF for the insert PopUp. Now the problem is when the user selects a row in the table and click on the View button it should open a popup with read only form displaying the data from the selected row. For this I use the

    same popup which I use for insertion of information by changing properties readonly or I have to create a separate popup for the purpose of seeing it please help me out in that.

    Thanks in advance.

    Published by: 959766 on November 6, 2012 10:11

    You can use the same popup...


  • y at - it a button to remove all the nuances that are not used in an file?

    Hey all,.

    I was wondering is there a button that removes all the nuances that are not used in an illustrator file?

    Any help would be great

    Look in the Actions Panel. It should be an action he who says to remove all unused items in the Panel.

  • I do not use CS5 Live. How can I disable popup cs5servicemanager?

    Probably something small, but it bothers me and I would like to disable the popup asking to use the information stored in the keychain. Using CS5 Extended on Mac 10.6.4.

    In Photoshop, go to Preferences > plugins... and uncheck everything under "panels of Extension.

Maybe you are looking for