Transparency and QNX iconButton

Hello

I am trying to create a round iconButton with a .png and it is showing it as a square.

This is the code I use to create:

         pButton = new IconButton();
            pButton.x = 10;
            pButton.y = -117;
            pButton.width  = 110;
            pButton.height = 110;
            pButton.setIcon("p.png");
            pButton.addEventListener( MouseEvent.CLICK, pClicked);
            addChild(pButton);

Am I missing something or are iconButtons the only rectangles?

Harry

Hey harry,.

from the looks of it and the docs, the IconButton class has simply creates a button and adds a picture to the center of this button. so for the most part its still a button with an image. but I think that if you want true transparency you can prolly create a new skin using the UISkin class and apply the button using the setSkin method. However its prolly not worth the hassle and are probably better just to create a Sprite object using the image and applying of the listeners who so it works as a button but is not really a button. This way you get real transparency without the ugly box around it.

Tags: BlackBerry Developers

Similar Questions

  • FireFox has gone completely transparent and nothing works

    I was in the middle of surfing when suddenly, Firefox went completely transparent and there is nothing I could do. Only minimize, restore and close works.

    I tried to update flash, re-installing of Firefox and nothing works.

    http://ImageShack.us/a/img5/8683/75930925.jpg
    http://ImageShack.us/a/img18/1740/89238227.jpg

    Hello yAxOr, can you try to start firefox in safe mode by pressing the SHIFT key during startup of this and see if the problem occurs there too? Maybe a theme or hardware acceleration intrudes here...

    If safe mode does not work, you can try to disable hardware acceleration in firefox > options > advanced > general and or disable addons that could cause the problem. It would also be interesting what graphics hardware (description of the adapter, driver date and version of the driver) you use - you can access this information in firefox > help > correct information to the bottom of this page... Thank you

    Troubleshoot extensions, themes, and issues of hardware acceleration to resolve common problems of Firefox

  • Problem with transparency and gradient in several forms

    preview.jpg

    Hello guys,.

    I have problem very stange (am have been strugling with four hours), I'm desperate and I hope I'll find help here. Thanks in advance...

    Here's the deal... I created this shape in photoshop (see the image attached). It's 6 circles with equal to 47 alpha / then I merged the circles and applied degraded (#f7c105 to #f4480b) and the angle set - 145

    Now, I try to recreate this shape in Illustrator... As you can see the image it sympathy ' e close but not the same thing. I do not know how to merge circles but to preserve transparency and then set the gradient.

    If someone has an idea, I'll be very grateful.

    Thank you.

    Yet a similar but variant method if you have 4 CS and later versions.

    http://www.wadezimmerman.com/videos/TransparentGradientCircles2.mov

    In addition if you adjust the Annotator degraded, then you can change the way in which the gradient fades as well.

  • Transparent background gif leaving no transparency and little dots

    I am a newbie and has successfully done once and decided on a new logo and did the same thing and now it does not work.  I am running vista, created a logo in a Gif file and edited in paint.  Then I open it in PS, use the background Eraser registered for the web, made sure it was even the gif.  ploaded it to my Web site and bam, it shows a white rectangle with a bunch of dots.  I tried with the eyedropper tool, thereby ensuring that the background was transparent color and without success.  I got my site up and running and has decided to do, and now you don't even know that your facility site because I don't have a logo to the top.

    However, I left a page up to see what he does.  Any help would be greatly appreciated as I am at end of the last week and a half.

    Thanks in advance,

    Lisa

    Hello Lisa!

    Try this:

    Remember what background you use on your website.

    -Open your GIF image in Photoshop

    -File---> save for Web & devices (this opens the possibility to optimize the files for the web)

    -Top left of new screen click "2up" (shows you the original and a version optimized in a split screen)

    -Top right of new screen scroll to the types of files and Select GIF (others are PNG-8, JPEG, WBMP, PNG-24)

    -Just below the selection GIF, click the arrow of the "Matte" button, it opens a menu, choose your color of original background (if white, blue etc..)

    - Transparency of box (optional)

    -Click Save at the bottom. Select the destination. Fact!

    I hope that answers your question. You will have to do with your png images as I think.

    Note also that you can reduce the size of the image (and quality) in the upper right by reducing the colors.

    P.S. (usually transparent and sRGB are selected)

    Let me know if it worked!

  • Translucent transparent Alpha-transparency and Lunacy

    QUESTION:  What is the difference between transparency and alpha transparency in the context of imaging DW?

    OTHER TERMINOLOGY technical AND non technical RELATED:  Opacity, opaque and translucent.

    BACKGROUND: http://forums.Adobe.com/thread/418120?TSTART=0 

    Roddy

    I posted a demo of the CSS and PNG alpha transparency opacity effects on my Web site at http://foundationphp.com/test/opacity.html.

  • Text and PDF is faded, semi transparent and unreadable.

    Hello
    Since the installation of Firefox 6, when I tried to open a PDF file, the image looks like it summer flows in a bad copy machine that is almost out of ink and is semi-transparent. (I can see the background image to display on my desktop via the PDF). I have Adobe Reader X 10.1.0 installed version, which seems to be the last plugin. (I checked all my plug-ins Adobe are up-to-date and also disabled every plugin but Adobe Acrobat and the problem persists.) I also noticed this problem with some of the text in the Flash applications, I opened it, such as practical a quiz site for a manual that I use for school. This does not occur in Internet Explorer, or when I open a PDF file in the viewer Adobe, leading me to think it's a Firefox problem. It's pretty frustrating that I can't read my documents online or study for my exams using Firefox, because overall, it's my browser of choice. Counsel on how I can try to fix this problem? Thank you.

    I have Firefox 6 (but several versions have the same problem) and was faced with the same problem and finally found the Solution. Firefox has hardware acceleration is enabled by default. You must disable.

    You can do it under Tools-> Options-> advanced. Uncheck the hardware acceleration

    1, type about: config in your address bar and promise to be careful, then search in gfx.direct2d.disabled preference name.
    Double-click the preference to True.

    2, check disable it Firefox Direct2D and DirectWrite Hardware Acceleration.
    Find the name of the preference gfx.font_rendering.directwrite.enabled .
    Double-click the preference to false.

    Restart Firefox. You should get clear, sharp images as well as correct rendered PDF back. It worked for me!

    Source: http://www.mydigitallife.info/fix-firefox-4-fade-blur-bold-bad-and-ugly-font-rendering/

  • I can't customize my window color and appearance to change the transparency and color of the window.

    Tuesday night I had to re-charge/reinstall Windows Vista because I had some problems with the worms and Trojans. After that I have re-installed Windows, I was able to customize my resolution and my window color and appearance. Once I installed all the 106 updates of Windows, I was finally able to change my resolution but I still not able to change my window color and appearance. Before I reloaded Windows I could change the transparency of the windows and taskbar and the tone of the colors, etc., but now all I can choose themes default and such of older versions of Windows. I was told that after I downloaded and installed all the updates, I'd be able to do, but I'm still not able to do. Is there a reason why and is there a any solution for this? Drivers? Material? Thank you. :) I hope this has been detailed enough.

    Hi Nicole,.

    In the services dialog box, double-click the themes service. On the Recovery tab, set the first and second failure of the drop-down lists "restart the service". If she is still unable to start/restart, open the event viewer for Windows Logs\System and locate the failure event. Post back with the information found here. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • How to make Custom Bitmap ButtonField background transparent and not black?

    I have a buttonfield bitmaps customized using a png with transparent rounded corners. It appears as a black rectangle with the image on it. How can I make transparent blackground? I think that my problem lies in this code and I tried to use "alpha" with no results:

    Protected Sub paintBackground (Graphics Graphics) {}

    try {}
    graph.setGlobalAlpha (0);
    graph.setBackgroundColor (Color.BLACK);
    Graph.Clear ();
    }
    Finally {}
    }

    I'm sure it's a simple answer, but thanks anyway for the help!

    So I tried to do the same thing to paint override, and now the buttons are not displayed at all the haha. In any case, another programmer has helped me too and came up with the following code, it works and the problem is resolved. Thanks for your help guys, I'll put 'likes' for you. If anyone needs the code here, this is:

    SerializableAttribute public class BitmapButtonField extends {field}
    _onPicture private bitmap;
    _offPicture private bitmap;
    private int id;

    public BitmapButtonField (Bitmap onImage, Bitmap offImage) {}
    Super(Field.FOCUSABLE |) Field.FIELD_HCENTER);
    _offPicture = offImage;
    _onPicture = onImage;
    }

    {public setButtonImage Sub (onImage, offImage Bitmap Bitmap)
    _offPicture = offImage;
    _onPicture = onImage;
    }

    {} public void setButtonId (int id)
    This.ID = id;
    }

    public int getButtonId() {}
    return this.id;
    }

    public int getPreferredHeight() {}
    Return _onPicture.getHeight ();
    }

    public int getPreferredWidth() {}
    Return _onPicture.getWidth ();
    }

    protected void drawFocus (Graphics g, boolean on) {}
    }

    Protected Sub layout (int width, int height) {}
    setExtent (Math.min (width, getPreferredWidth()),
    Math.min (height, getPreferredHeight()));
    }

    Protected Sub paint (Graphics Graphics) {}
    graph.drawBitmap (0, 0, getWidth(), getHeight(), isFocus()? _onPicture: _offPicture, 0, 0);
    }

    protected boolean navigationClick (int status, int time) {}
    fieldChangeNotify (0);
    Returns true;
    }

    {} public boolean keyChar (key char, int status, int time)
    If (key == Characters.ENTER) {}
    fieldChangeNotify (0);
    Returns true;
    }
    Returns false;
    }
    }

  • Transparency and color precision

    Hello

    I created a PNG with only 1 color: white, but with varying degrees of transparency.

    My idea is to cover this png on top of any solid color and create a brilliant UI, regardless of which is the background color.

    However, when I applied, I don't see that on 5 different shades of white, so theoretically it should be 255 different shades.  Needless to say, it looks terrible.

    Do you have suggestions on how to make this work better?  Could I manually draw the pixels using Graphics.drawARGB for best effect, or is this a limitation of the device Simulator or blackberry?

    If you have any suggestions on how to create the desired effect, I would greatly appreciate them.

    I'm sure that transparency is 8-bit (0-255), but the transparent color is mixed with the underlying color, and the result is 16-bit color. I'd do a few tests to determine the best combination of what you want. So do images of 32-bit normal and then save them as 16 bit images to see how to work the colors on the scale.

  • Transparency and thumbnails missing aero - how to get them back?

    Missing thumbnails in taskbar (when I hover over an icon for a running application) problem started after I have had disappeared from this computer for two months and installed 30 + critical and optional updates when I'm Home 03/06/13 (last updated 04/01/13). I have a screenshot of the updates installed if anyone needs. The restore feature offers no point of restoration before 06/03/13.

    I read many issues forum on Aero and vignettes that disappears and tried all the solutions proposed, including but without limitation FixIt Aero (says my graphics card will not be "necessary support display settings", but he has worked for several years), Aero convenience store (no problem found), install the latest NVidia driver on their site, reinstalling the driver from NVidia Dell original worm 8.16.11.9187) regedit changes suggested on the forum, many reboots, etc.

    I'm finally ideas, but really want to have thumbnails of more operational hover again. As a side note, I see that the bars in the upper part of the windows are not transparent now either. I worry about this, but I bet they are related.

    Any help would be appreciated.

    System: Workstation T7500 Dell with Intel dual Xeon 2.66 GHz CPUs, Nvidia Quadro FX3800 1 GB with
    12 GB of RAM, Win 7-64 bit Ultimate SP1

    Thanks for any help you can give.

    If you have updated your Windows then uninstall the update of platform for Windows 7 (KB2670838) and your problem should be solved.

    Before I updated my Windows this month I just checked if Microsoft still offer this update. This is in the optional list. I installed so I thought to manually upgrade to IE10 because he wasn't in the IE9 update list. So I did manually and after that check updates again and to my surprise this update has disappeared completely. I have an old PC as well, and after installing all the updates I still have no problems so far. I recommend that you upgrade to IE10 after uninstalling this update (if you updated with that and faced the problem) to get rid of the update forever. But do it at your own risk, because I never updated my machine with this defective update and see if that caused any problems with my machine.
  • Remove transparency and merging forms.

    Hello

    I don't know how to explain it... So I'll use the visuals!

    Currently my image looks like this with a lot of transparent space between the two. But I want to get rid of the differences between the two and merge each 'form' next to each other...

    Screen Shot 2016-07-27 at 11.28.49 PM.png

    Like this (please look below... I've grouped only half of the image together just to show what I want)

    Screen Shot 2016-07-27 at 11.32.08 PM.png

    It is easy to choose the negative space between the images with the selection tool, but is at - he of the shortcuts to group shapes side by side without doing it manually? I have about 100 of them to do - so any advice would be greatly appreciated!

    Thank you very much!

    I think I might know what went wrong. I did not go in that leaders must be in pixels. You can set your rulers to pixels or add this line after line of photoshop #target:

    app.preferences.rulerUnits = Units.PIXELS;
    
  • How to trim a logo with transparent and degraded traces?

    I use Illustrator CS2.  I have a logo with transparent traces and a gradient.  I would like to cut or trim so there is no space on the bottom of the logo as seen in the screenshot below.  Thank you for your help.

    graphic.png

    Like2Create,

    If you want to keep the B as direct Type, you can:

    (1) tick Edit > preferences > General > use overview of limits;

    (2) to select the Type (B) with the selection tool (normal) and the effect > path > outline object.

    Which will reduce the Bounding Box to the real limits of the letters and keep the editable Type, so you can set the direct Type you like in function since its appearance.

    But if you need not described the text as a PDF, you will need to remove the effect:

    (3) with the selected direct Type, click reduce it to the basic appearance button in the appearance palette.

    Who's going back to normal Type Escarole.

    Obviously, you will need to uncheck the box use a snippet of the boundaries for other purposes, but you can just check that again when you need to edit (some of) the Type if necessary to keep in place. Maybe it's not necessary the changes will (for the most part and only if no letter is more than the vertical limits far) horizontally.

  • Illustrator: How to get the overlapping text on transparent and keep gradient and stroke?

    In Illustrator, how can I be part of a transparent text overlapping letter? The circle which lies behind this letter has a gradient and a stroke.  I want the letter to appear that it is hanging around this circle.  In the screenshot, I pointed out the area I want to be transparent with a green arrow. Thank you for your help.

    example.jpg

    Draw a line through the descender of the letter. Select the letter and line, then click on split. Separate the two forms that result and send whatever shape you want behind the ring.

    Result:

  • BRIGHTNESS: transparency and accelerate the departure of the fragments to end

    I have a simple glow effect, but I want to maintain transparency when

    I export this clip to the body so this effect is then on a different level.

    at this time the background is black.  Can I just turn on 'the transparency grid?

    Also the last pieces do not leave the area of the image rather quickly.  How can I speed up this part?

    In fact I would the explosion to start more slowly, then accelerates the end to get rid of the fragments.

    OK I see variance mass will do.

    "Gravity", I added the pieces still fall through the frame, but he got rid of them more quickly.

    Rather, they come out of the frame, as if there is no gravity.

    Thank you

    Steve z

    Steve Zeeeee says:

    Can I just turn on 'the transparency grid?

    Laughing out loud

    You will need to return to a format and a taking codec supported transparency. For example, go to QuickTime with the PNG codec and be sure that you set your render settings to be RGB + Alpha

  • Problem with export to pdf design with transparency and piercing group

    Hello

    My question is simple and complicated. It seems that according to the version of the viewer of pdf with people they see my presentation differently.

    I have a few transparent layers to lapping each other and used the sharp group for not having a mixture.

    When you export the pdf file, I see that my destiny:

    Capture.PNG

    When others open to publish the results vary but even adobe can't do things:

    https://INDD.Adobe.com/view/1675353c-35cf-450A-a4b0-74ad3b5122bd?ref=IDE

    Please help and sorry for my terrible grammar.

    Found a way around the problem. It is not the most amazing, but it's fast and easy. The pdf is also much lighter

    1. Copy industry
    2. Delete all except bottom and blocks
    3. Save as jpeg
    4. Open original
    5. Make the opacity of 0 blocks
    6. Remove the background and replace them with jpeg
    7. Be happy

Maybe you are looking for

  • Load the options down

    When I load PDF files or pictures, I used to display a pop-up window asking me if I want to OPEN or SAVE. At some point, I put save as default. How to reset it?

  • Slow start up

    Hey guys I recently brought a new Toshiba laptop and I've had some problems with my screen. When I boot my laptop or get it back mode standby, it takes a good 10 minutes for screen appears. Is it normal or I do something wrong?If anyone knows please

  • Running the Citadel on HMI and OPC Server OR

    Hello! I want to use computers to screen HMI NI TPC 2215 and it interface with a GE Fanuc PLC using OPC Server and save the data in a database of the Citadel. I would like to know if the HMI OR supports a full edge of the blown OPC Server and a datab

  • Re-install i-tunes music to iPod

    I had to replace the hard drive. Is it possible to transfer music from iPod on i-tunes on new hard drive, or is it a case of resettlement of 5000 titles in the collection of records again?

  • Inbrowser editing does not not with chips

    With the new version of Adobe Muse, resembles inbrowser editing does not work when it comes to chips.Check out this screencast:http://www.screencast.com/t/vZQDiDweo8x