Skin on the theme of black selector does not

I'm defining skin selector to the black theme.   I can get this to work if I put the general themes to black, but I don't want my entire application returned to black theme, just this selector.  I tried to put the skins for each of the components (http://www.blackberry.com/developers/docs/airapi/1.0.0/index.html) of the harvester, but the components you see before clicking on the selector to stay in the white theme.  When I click on the selector, you see black-themed items.  I used

budgetPicker.setButtonSkin (new PickerButtonSkinBlack);
budgetPicker.setListBackgroundSkin (new PickerListBackgroundBlack);
budgetPicker.setSelectionSkin (new PickerSelectionBlack);

But the .setButtonSkin does nothing.  Even if I comment out it makes no difference.

Anyone?

Hey EraserX.

I did some more research and found a possible workaround. Thanks to Flash Builder, I could sniff the class selector via its extension with a custom class. It turns out that the button is a protected value therefore fully accessible only through the extension of the class. to summarize I essentially took the setButtonSkin method and it overrode and then altered the __buttonBackground (turns out there's a button so its skinnable via its own method of setSkin).

CustomPicker.as:

package
{
    import qnx.ui.picker.Picker;

    public class CustomPicker extends Picker
    {
        public function CustomPicker()
        {
            super();
        }

        override public function setButtonSkin(skin:Object):void
        {
            this.__backgroundButton.setSkin(skin);
        }
    }
}

If in the future rather than create an Picker() object, you can create a CustomPicker() object.

// A short example of a picker component that displays// day, month and year. package{ import flash.display.Sprite;  import flash.events.Event;

  import qnx.ui.data.DataProvider;  import qnx.ui.picker.Picker;  import qnx.ui.skins.picker.PickerButtonSkinBlack; import qnx.ui.skins.picker.PickerListBackgroundBlack; import qnx.ui.skins.picker.PickerSelectionBlack;  import qnx.ui.text.Label;

  [SWF(height="600", width="1024", frameRate="30", backgroundColor="#BBBBBB")]  public class PickerSample extends Sprite  {

      public function PickerSample()        {

          // Create three arrays to handle days, months, years.

          var arrDay:Array=[];          var arrMonth:Array=[];            var arrYear:Array=[];

          // Populate the month array and create the            // day DataProvider 

          for (var i:int=1; i<32; i++) {             arrDay.push({label: i.toString()});           }

          var dayDP:DataProvider=new DataProvider(arrDay);

          // Populate and month array and create the month          // DataProvider

          arrMonth.push({label: "January"});            arrMonth.push({label: "February"});           arrMonth.push({label: "March"});          arrMonth.push({label: "April"});          arrMonth.push({label: "May"});            arrMonth.push({label: "June"});           arrMonth.push({label: "July"});           arrMonth.push({label: "August"});         arrMonth.push({label: "September"});          arrMonth.push({label: "October"});            arrMonth.push({label: "November"});           arrMonth.push({label: "December"});

          var monthDP:DataProvider=new DataProvider(arrMonth);

          // Create the year DataProvider

          for (var l:int=1900; l<2015; l++) {                arrYear.push({label: l.toString()});          }

          var yearDP:DataProvider=new DataProvider(arrYear);

          // Add the day, month and year DataProviders to the main          // array

          var dpp:Array = new Array();

          dpp.push(dayDP);          dpp.push(monthDP);            dpp.push(yearDP);

          // Create the picker and add the main DataProvider

          var picker:CustomPicker = new CustomPicker();

          picker.setListBackgroundSkin(PickerListBackgroundBlack);          picker.setSelectionSkin(PickerSelectionBlack);            picker.setButtonSkin(PickerButtonSkinBlack);

          picker.width=400;         picker.height=50;         picker.x=picker.y=300;            picker.dataProvider=new DataProvider(dpp);            addChild(picker);

          // To customize column widths,            // all widths are added up and then used for              // a ratio against the component set width

          picker.setListWidth(0,100);           picker.setListWidth(1,300);           picker.setListWidth(2,200);

          // Set to Jan 1, 2010

          picker.selectedIndices=[0,6,111];

          // Add listeners for open, close and select events

          picker.addEventListener(Event.OPEN,handleOpen);           picker.addEventListener(Event.CLOSE,handleClose);         picker.addEventListener(Event.SELECT,handleSelect);

          // A simple function that displays currently selected         // item information in the console. 

          traceItems();

          function traceItems():void            {             for (var j:int = 0; j 

It should have the same features of the original class with just one method of updated the setButtonSkin(). I would also add, because it's a total guess I don't know if we are losing additional features. example, if something else were also made in this method, I do not know. but it does the job well I hope this helps until they disappear the bug. Good luck!

Tags: BlackBerry Developers

Similar Questions

  • I click on "SET UP" on my Motorola XOOM and the screen goes black and does not settle. " I have uninstalled and installed the man times. What to do next?

    Cannot install Firefox Mobile o my Motorola XOOM. I have download and start editing the page and the page become black and back can not be configured.

    By clicking on the "Android Zoom" and select "Stretch to fill screen" and restart the tablet. The "Zoom to fill the screen" breaks Firefox mobile and it's a shame Android this suggests for our application on the first run.

    We are working to solve this with the creation of our Tablet UI.

  • I can't change the video resolution on youtube. When I try to change it, he goes to 240 p and the screen is black and does not play the vid.

    Hello, I have this problem.
    Recently, I have noticed that when I try to change the quality of the video by default 360 p to whatever, the quality will increase to 240 p and the video wont run. There will be a black screen.
    I tried to reset the browser and it has not fixed my problem.
    I tried the same video in internet explore and quality change worked normally.

    How would I fix this?

    Thank you

    Clear the cache and cookies only from Web sites that are causing problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > Cookies: "show the Cookies".
  • Screen turns black and does not return. One stop forced

    When I leave my computer for a while, the screen turns black and does not return when I press 'enter', or any other key.  I do a forced shutdown (turn off with the power button).  Can I get, and the "incorrect closing" message when I turn on computer. I think that it is a problem of Hibernate.  Any ideas?.
    MMM

    Original title: hibernation problem?

    What happens if you press Ctrl + SHIFT + ESC when you want to get out of hibernation?

    You use a wireless keyboard and mouse with a transponder. What happens if you press the button on the transponder?

  • Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-&gt; ' display as ' does not show the grid option. A library of fact.  It's all music, with no video media. By default seems to be a list that is unc

    Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-> ' display as ' does not show the grid option. A library of fact.  It's all music, with no video media. By default seems to be a list that is unchangeable.

    Select the sidebar if hidden. View options > view as may depend on which of the options for the song, artist, album, etc. are selected in the sidebar.

    TT2

  • My dell optiplex 740 will not start. The screen is black, once it displays the Dell logo. It does not say that the computer is in mode 'sleep'.

    My dell optiplex 740 will not start.  The screen is black, once it displays the Dell logo.  It does not say that the computer is in mode 'sleep'.

    1. Did you the latest changes on the computer?
    2. When was the last time it was working fine?
    3. You receive an error message?

    Method 1

    See the articles below and check if it helps.

    Computer stops responding with a black screen when you start Windows XP

    http://support.Microsoft.com/kb/314503

    After the Windows Logo appears or after you log in to Windows, a Windows XP computer cannot display the wallpaper, a black screen or a blue screen

    http://support.Microsoft.com/kb/318027

    Method 2

    I suggest that you start the computer in the last good known Configuration mode and safe mode, post back with the result.

    A description of the options to start in Windows XP Mode

    http://support.Microsoft.com/kb/315222

    How to start your computer by using last good known Windows XP Configuration

    http://support.Microsoft.com/kb/307852

    How to fix a computer that does not start

    http://Windows.Microsoft.com/en-us/Windows-XP/help/Setup/how-to-fix-computer-that-will-not-start

    Method 3

    If the computer can boot in any mode, then I suggest that you perform the clean boot procedure and check if it helps.

    It is possible that some third-party programs installed on the computer is causing the problem.

    To help resolve the error and other messages, you can start Windows XP by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    See section to learn more about how to clean boot.

    How to configure Windows XP to start in a "clean boot" State

    http://support.Microsoft.com/kb/310353

    Reset the computer to start as usual

    When you are finished troubleshooting, follow these steps to reset the computer to start as usual:

    (a) click Start, type msconfig in the search box and press ENTER.

    (b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.

    (c) under the general tab, click the Normal startup option, and then click OK.

    (d) when you are prompted to restart the computer, click on restart.

  • Photosmart D110a: installed the new HP black ink cartridge and now the black ink does not print

    Just installed a new print 60xl cartridge to replace the one that was being ink. Now the black ink basically does not print. I cleaned the cartridges 4 times and run all Diagnostics pages. The black prints just a small piece of the upper part of the letters on the pages of diagnostics and in grayscale on the test pages.

    Hello!
    Welcome to the HP Forums, I hope that you are @janmacwill,

    I saw your post on the black ink does not print your Photosmart D110a and I wanted to stop making you share my suggestions. See the link below to solve the problem and if the black still does not print, contact HP (below) to see about a replacement unit.

    Printer prints a blank Page or doesn't print black or color ink for the printer series HP Photosmart e-All-in-One (D110a and D110b)

    If you have trouble, let me know and I'll do my best to help.

    Hit the "accept as Solution" if we reached a solution and the "thumbs up".

    to say thank you for my help.

    Have a wonderful day

    HP technical support are available by clicking on the following link:

    http://h22207.www2.HP.com/us-en/?openCLC=true

    (1) once will open the support page please select the country in which you are

    located. Then enter your model of HP on the right number.

    (2) then choose the 'Contact Support' tab at the top and scroll down to the

    bottom of the page "HP Support - Contact" to fill in the form provided

    your contact information.

    (3) Once finished, click the "Show Options" at the bottom right.

    (4) Finally, scroll to the bottom of the page and select ' Get phone

    number. "A file number and telephone number will now fill for you.

  • How do I set up my hp6700 printer so that it prints in black and does not take into account all the colors?

    How do I set up my hp6700 printer so that it prints in black and does not take into account all the colors?

    To print the black ink only follow the steps below.

    1. Select Start menu
    2. go into devices and printers.
    3. right click on the printer, select printing preferences
    4. in the lower right corner, select Advanced
    5. and then under features of the printer select print grayscale a dropdown list will appear to black ink only.

    Let me know how it goes.

  • "I have a hp officejet 6500 e709 - black ink does not print." I have replaced the ink cartridge...

    "I have a HP Officejet 6500 E709 - black ink does not print." I have replaced the ink cartridge... clean the print heads and contacts... and nothing seems to work. All other colours print fine. HELP ME PLEASE.

    Before you buy a new set of PHA, you could try following the instructions on this post for a more aggressive cleaning Interior http://h30434.www3.hp.com/t5/Other-Printing-Questions/Photosmart-Premium-c309a-Black-prints-out-green-on-photo-paper/m-p/449245/highlight/true#M28673

    Try this first and post back to tell how you got.

  • Addition of Google Chrome, now Safari does not open, impossible to link electronic mail links.  Just received message "Safari is closed."  Tried deleting 3rd party add ons. Is went into preferences, Safari is the default browser, but it does not open.

    Add Google Chrome, now Safari opens Cannot link e-mail links.  Just received message "Safari is closed."  Tried deleting 3rd party add ons. Is went into preferences, Safari is the default browser, but it does not open.

    Third party extension and plug-ins?

    If Safari is slow, unresponsive, which closes unexpectedly, or has other issues

    The problem may be caused by a Safari Extension, Internet plug-in or another add-on.

    The safari Extensions, Internet plug-ins, and other modules are designed to improve or customize the browsing experience. Modules are widely available on the Internet, and some are installed as part of an application or other software. If you have Add-ons installed, an add-on might be at the root of the issue.

    If the problem is the unwanted pop-up windows, advertisements and graphics while surfing on the web, discover how to remove the ad-injection (adware) from your Mac software.

    Disable the Safari Extensions

    You can disable Extensions Safari to learn if all are causing the problem.

    1. In the Safari menu, choose Preferences.
    2. Click the Extensions icon, and then select an extension from the list.
    3. Uncheck the box enable disable this extension.

    If turning off an extension solves the problem, look for updates of the extension by clicking Update in the lower left corner of the window. Or remove the extension by clicking on the button uninstall.

    Remove Internet plug-ins and other add-ons.

    You can remove Internet plug-ins and other add-ons to see if everything is the origin of the problem. To find them, quit Safari and open these folders in library:

    • The library folder at the top level of your hard drive. Open it from the Finder by choosing go > go to folder in the menu bar. Then type /Library and then click OK.
    • The record library in your home folder. Open it by organizing the Option while choosing go > library in the menu bar.

    The folders in the library contains the following folders for modules. Move all the files in these folders to the trash.

    • Internet Plug-Ins
      Do not remove the default Browser.plugin, nslQTScriptablePlugin.xpt, Composer.webplugin of Quartz or QuickTime Plugin.plugin.
    • Input methods
    • InputManagers
    • ScriptingAdditions

    If the removal of the files in these folders solves the problem, quit Safari again and gradually put the files until you find the one at the origin of the problem:

    1. Open the Recycle Bin and select one of the files that you removed. Chose file > back up. The file back to its folder.
    2. Open Safari and see if the problem returns.
      • If the issue is returned, you have identified the add-on causing the problem. Do not use or contact its manufacturer for an updated version.
      • If the question does not return, quit Safari and put back another file.
  • Is there a phone rep who can help me get my profile on my new computer? I think I did OK for the tutorial, but now it does not work

    I had to buy a new computer as my last one had problems. I backed up what I think is all of my files on an external hard drive and moved them to the new computer but Thunderbird does not open. So I re downloaded Thunderbird and followed the tutorial on copying and pasting the old profile in the profile folder and now Thunderbrid (I think) will not open.

    Thunderbird profile cannot be loaded. It may be missing or inaccessible.
    

    So I put everything in the trash and re downloaded the program, and I still get the same error (I however wouldn't be the case that I was starting from scratch).

    In a little over my head. Any help?

    Try this method to import emails.
    addon ImportExporttools:

    Download the as file and save it to your ex: desktop

    In Thunderbird

    • Tools > Addons or Menu icon > Addons
    • Click the gear icon and select "install the addon from file".
    • Find the downloaded as file and click 'open '.
    • You may have to restart Thunderbird.

    To import an mbox file (all messages are stored in Thunderbird mbox files)
    Right click on the email account
    Select: ImportExporttools > import a mbox file
    Select: directly import one or more mbox files
    Search for the file and click 'open '.

  • can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box

    can't connect to my home internet income james ashley forgot it the link password does not work and the password I was given does not fit into the password box

    Are you sure that you do not have to register on this site through the usual way and what you should be used elsewhere on the site?

    Have you tried to contact them to help this topic or to check if they have a FAQ on this subject?

    I found this in another thread that you created [*]:

    I'm not sure do I bought a home income internet james ashley program and I copied the login info I was given and the password does not fit into the window of password and I forgot the link password does not work I sent emails, but do not receive an answer im don't know what to do is anyway you can help me to recover my info or help me change the password?

    I assume that you have downloaded and installed this program and need to use this password in this program or only you can use these data to download the program from the site james ashley?

  • loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    loads of YouTube but then when I click on a video it doesent play. It worked fine the other day and it does not work in the past and suddenly. Help, please!

    Clear the cache and cookies from sites that cause problems.

    "Clear the Cache":

    • Tools > Options > advanced > network > storage (Cache) offline: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Tools > Options > privacy > Cookies: "show the Cookies".

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).

  • The Web of Toshiba site does not recognize of my drive hard number and P/N

    Hello

    There is a little less than two months, I bought my HDD Toshiba Canvio Basics 3.0 from Amazon. The hard drive has stopped working for some reason any (I drop or something, it simply stopped working).

    Of course, I was trying to use my warranty to repair or Exchange it, but the Web of Toshiba site does not recognize my serial number and product number. They are just there, black and white on the sticker on the back of my hard drive, but the site says they are not valid.

    Someone has an idea what is happening? I would rather not throw 50 euros by the window for less than two months of use.

    Product number is HDTB105XK3AA - and not to HDTB105 * E * K3AA like some sites say (including Amazon).

    Thanks for your help.

    Stand by. Have you contacted Amazon using Amazon options for repair under warranty or Exchange?

    Check please help Amazon option and collect detailed information on defective, damaged or significantly different returns.

    Two years ago I had problem with the mobile phone bought by Amazon and I send direct Amazon with bill Amazon.

    By the way: can you please post the link where you have tried to check the serial number of your HARD drive?

  • Whenever I run Firefox, it appears an error message indicating "Firefox could not install this point because 'install.rdf' (provided by the element) is incorrect or does not exist." Contact the author to this problem. »

    Firefox could not install this point because 'install.rdf' (provided by the element) is incorrect or does not exist. Contact the author to this problem.

    The above statement is in the box pop up error every time, when I run Firefox. If I click on ok in the box of Firefox opens. How can I solve this problem of initialization/launch?

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of your modules is causing your problem (switch to the DEFAULT theme: Tools > Modules > themes).

    See the extensions, themes and problems of hardware acceleration to resolve common troubleshooting Firefox problems and troubleshooting questions with plugins like Flash or Java to solve common Firefox problems

    If this does not work in safe mode and then disable all your extensions and then try to find out who is causing by allowing both the problem reappears.

    You can use "Disable all add-ons" window the startup of Firefox to solve the issues in Safe Mode to disable all extensions.

    You will need to close and restart Firefox after each change via "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')

Maybe you are looking for