The drop-down the counting button... NO CellRenderer...

I finally had time to count my QNX components, and as I suspected the drop down (that I have left to the last) is the only component to give me problems when it comes to counting.

Has anyone successfully scraped the Drop Down button with the arrow?

I came close, but I get this weird behavior where, when I click on the button while the menu is developed, I can see drop down the default button.

Here are a few screens:

Don't not clicking the button of dd:

By clicking on the button of dd:

Here is my code:

brushDropDown=new CustomDropDown();
brushDropDown.setListSkin(CustomDropDownCellRenderer);
brushDropDown.setButtonSkin(CustomDropDownButtonSkin);
brushDropDown.setBackgroundSkin(DropDownBackgroundSkinBlack);   brushDropDown.setBackgroundSkin(DropDownBackgroundBarSkinBlack);

public class CustomDropDownButtonSkin extends DropDownButtonSkinWhite
    {

        /**@private**/
        protected var upSkin1:Sprite;
        /**@private**/
        protected var selectedSkin1:Sprite;
        /**@private**/
        protected var disabledSkin1:Sprite;
        /**@private**/
        protected var downSkin1:Sprite;

        public function CustomDropDownButtonSkin()
        {
            super();
        }

        override protected function init():void{

            super.init();

            upSkin1=new Sprite();
            upSkin1.graphics.beginFill(Colour.YELLOW);
            upSkin1.graphics.drawRect(0, 0, 170, 50);
            upSkin1.graphics.endFill();

            downSkin1=new Sprite();
            downSkin1.graphics.beginFill(0x333333);
            downSkin1.graphics.drawRect(0, 0, 170, 50);
            downSkin1.graphics.endFill();

            disabledSkin1=new Sprite();
            disabledSkin1.graphics.beginFill(0xCC0000);
            disabledSkin1.graphics.drawRect(0, 0, 170, 50);
            disabledSkin1.graphics.endFill();

            selectedSkin1=new Sprite();
            selectedSkin1.graphics.beginFill(Colour.ORANGE);
            selectedSkin1.graphics.drawRect(0, 0, 170, 50);
            selectedSkin1.graphics.endFill();

            setSkinState(SkinStates.UP, upSkin1);
            setSkinState(SkinStates.SELECTED, selectedSkin1);
            setSkinState(SkinStates.DISABLED, disabledSkin1);
            setSkinState(SkinStates.DOWN, downSkin1);
            showSkin(upSkin1);
        }
    }

I noticed that DropDownButtonSkinWhite (extending my CustomButtonSkin) has already selected skin assigned to it that I can't replace... I can do false visible, who hide assets by default... but that does not help me...

Does anyone found a workaround for this? Thanks in advance...

Hey,.

the count is rough - we will essentially blind lol. Here are the States in the drop down menu you need to cover including the ones you already have:

setSkinState(SkinStates.UP, upSkin1);
setSkinState(SkinStates.DOWN, downSkin1);
setSkinState(SkinStates.SELECTED, selectedSkin1);
setSkinState(SkinStates.DOWN_SELECTED, selectedSkin1);
setSkinState(SkinStates.DISABLED, disabledSkin1);

Good luck!

Tags: BlackBerry Developers

Similar Questions

  • Can I make a drop down 'Read more' button to display an information box?

    I have an image I want to have a button "Read More" below you can click on and it goes down a box of 'more information', then I hope that you can click on it and it will disappear or something similar?

    Thanks heaps!

    Adam

    Hello Adam,.

    You can use the tabs Panel or the Accordion widget for this.

    If you are using the ToolTip widget, you can use the ToolTip widget options to set the same onclick (the default value is on working capital), and then clikcing on the trigger will bring the target in sight.

    If you use the Accordion widget, you can remove two out of three triggers in the accordion panel and leave it alone (by default there are three). Then, make sure you keep the trigger accordion closed in design mode. Additionally, make sure that you use the option 'Can close all' options accordion as shown in this screenshot: http://screencast.com/t/hlLukFqwUqww

    I hope this helps.

    See you soon

    Parikshit

  • How to return multiple screens? There used to be a drop-down list of the recent screens in a tab. Thank you.

    The navigation bar contains icons arrow to move forward or backward a screen in a tab, but previous versions of Firefox has also provided a drop-down list of recent Web pages allowing the user to return more than one screen with a single click. This feature is always available?

    The feature was not removed, see article #5 tools rear without drop-down - menu bar button use right-click (or left click hold for a second) for the drop-down list

    in what follows:

    You can make Firefox Firefox 5.0 look Firefox 3.6.19, paragraphs numbered 1 to 10 in the next topic difficulty Firefox 4.0 UI toolbar, problems (Make Firefox 5.0, or 4.0.1 resemble 3.6). If you make changes, you must be aware of what has changed and what it takes to use changed or missing features.
  • How to have drop down menu in which we cannot continue until the selection is made

    Hi all

    I have a case in which I have 4 menu drop down and a button to continue, I want to make sure that a user cannot continue until the choice is made on all or at least some of the drop-down list. How can I do that.

    Not get stuck at all!  the button is "disabled" because it is what it is made also.

    That fixed, it must be "enabled".

    Hmmmm... looking at the source code we can easily see who wrote this bug in the first place.  Shhh... don't tell on me.

  • change the background color of menu for the firefox button

    I changed the color of the font of all menus in firefox to white (using userChrome.css) because I'm using a custom theme dark windows 7, where all the context menus are dark. The problem is that the menu of the Firefox button (in the menu that appears when you click on the orange button firefox) remains a brilliant white and blue, making it almost impossible to read the text in white. Is anyway to change two circles of the firefox button menu, or perhaps to change it so it appears like my popups? (via the module or adding to userChrome.css) Thank you

    You can use these two as selectors of these two components in the list of menu drop down menu Firefox button.

    #appmenuPrimaryPane
    #appmenuSecondaryPane
  • You can choose several items in a drop-down list?

    I was asked if it is possible to make a drop-down list in which two elements could be selected?  (as you want to choose colors gray and blue) Or it is limited to one per drop of water down)

    If so, how to set the drop-down for this button?

    I'm a newbie, be gentle.  Thank you.

    No, it is not possible with a drop-down list. You can do this by using a list box

    field, however.

    Tuesday, December 1, 2015 to 23:01, carlas70158474, [email protected]>

  • Drop-down menu reactive

    Hi all

    I hope someone can help me with this problem. I created a reactive liquid Grid Menu and it works exactly how I want it except for one thing. When I resize my browser for tablet or Mobile display, menu collapses perfectly. That's great. I press my menu symbol and my menu drop down with extra buttons. Now that my browser is still reduced to view a Mobile or tablet, I select the symbol from the menu and get rid of the menu and it works perfectly. Now, here's the problem, when I resize the browser to the desktop view window, the menu has disappeared. And I know it's because of the effect of rocking because when I come back to display Mobile or Tablet and toggle the menu down and then resize back to the view of the office, the menu is displayed again.

    Why is happening. ? Here's the code if necessary. Thanks in advance for your help.

    Click on the link to see it in action.

    http://www.ultimate-sound.com/test/

    Add a resize jQuery function:

  • Dynamic table with drop-down lists

    I have a dynamic array with a header row, row in Section, and footer.

    Section has the cells (columns) next: Cell1 (drop-down with locations), button (to remove the line), CCode (RAL color Code), CName (name of the color).

    I start with 1 row.

    now what I want to do is, when they select in Lignesde for example RAL 1003 (rawValue '1') then in CName must appear the name "yellow signal" (rawValue '1').

    I am using javascript

    My first problem is how do I know what value is chosen, because this does not work:

    If (this.rawValue == 1)

    {

    xfa.host.messageBox ('Today')

    }

    and on the other hand, how to set the CName value

    because it affects only in the first cell CName:

    xfa.form.DataSheet.TechnicalInformation.Markings.THatchPatterns.Section.CName.rawValue

    = '1';

    Please help me, I'm totally lost

    solved the problem, instead on the change event to put the script on the exit event.

    and the trick is the following line:

    xfa.resolveNode ("THatchPatterns.Section [" + this.parent.index + "]"). This.rawValue = CCode.rawValue

  • Create drop-down list in Captivate 5

    I want to do is be able to select a button when selected a drop down menu appears with about 4 buttons.  I then want to choose one of the buttons in the menu drop down and this button brings me to another slide.  I also want to do this without the help of several slides. Is this possible in captivate 5.

    Hi guys,.

    What about using the widget GoToSlide, combined with advanced actions? Given that the appearance is not the best but it might do the trick. You can customize the names in the drop-down and which slide, it is associated with.

    Whyves

    ____________________

    www.Flash-Factor.com

  • How can I prevent my addon buttons from being hidden by the drop down "more tools" menu?

    I have several addon buttons on my toolbar to the right of the obtained. Firefox hides in a menu button drop down titled "more tools... ». I don't want to do that, but I can't figure out how to change this behavior. When I enter the Customization screen, the button disappears, and neither she nor any of the buttons it hides appear on a toolbar or in the component "other tools and features.

    Sometimes when I first open Firefox, my addons will show the way I want to do, but then some time in the Firefox session randomly will collapse them in the new drop-down list. How can I stop the Firefox hide something in this drop-down list?

    I'm talking about here is a screenshot of the drop-down list: https://i.imgur.com/DVpxxe4.png

    Normally, when you adjust the width of the window of the browser, the search box and got will be 'flex' becoming more or less long to accommodate the change. However, they have a minimum width, and if the window becomes narrower than, the "overflow" menu/button will appear.

    The problem may occur with a wider window on the sites with certificates EVSSL, like this one, where the owner of the site name appears next to the Green padlock. That takes a lot of space...

    You can probably can change the behavior of Firefox with a custom style rule, but 'something' must be sacrificed to make room...

  • Where is the list button drop down bookmark?

    I had to download an older Firefox to retrieve my bookmarks button.

    In two steps, I looked at Firefox destroying one of the most important tools in the habit of browsing MINE.

    First the bookmark button has been combined with the bookmarks menu and the Sidebar Bookmark, so when I pressed on the bookmark button is sometimes open Panel, sometimes the menu and sometimes the right SIDE of the menu drop down. Every night in the latest iteration of the key looks strange and only opens a popup of library... I tried to disable all plugins. I tried to install the classic toolbar. I tried to look this up on google... but nothing has worked for me yet.

    I just my normal Favorites drop-down button to return so I can surf my sites with a hand on my mouse... without having to type on the keyboard.

    I would have liked to post some images for convenience of everyone but don't know how.

    Well I tried to do some screenshots and had to reinstalled 27.01 and button is now back in its original form works... YAY...

    For me, it is so fixed, sorry for the inconvenience.

  • Tabs aren't appearing online with the Firefox drop-down list button.

    Here is a screenshot of the problem: http://i.imgur.com/y2binxI.png

    The tab bar is not the tail with the drop-down list button, and nothing I've tried yet fixed.

    Things I've tried:

    - Un-maximising and re-maximising the window (this has worked in the past when I have this problem, but not this time)
    - Moving things around in the Customize screen to see if something got moved out of place
    - Restarting with add-ons disabled
    - Checking for any toolbars to hide/unhide
    

    I have not yet tried to do a full uninstall/reinstall again because, well, that would be a little pain.

    Any suggestions?

    You run Firefox with an enlarged screen?

    You can set the Boolean pref browser.tabs.drawInTitlebar true on the topic: config page to see if that helps.

  • Why, when I type in the address bar and select from the drop-down list, I seem to "click on" on one of the toolbar buttons?

    I noticed recently that, sometimes, when I chose an entry in the drop-down list after I started typing in the address bar, I would get a different page than I wanted to. It turned out that I was actually clicking the bookmarks toolbar button that has been hidden under the list entry, I thought I was clicking.

    Hi, thanks, but disabling hardware acceleration does not fix it. However, I just swapped my mouse, and seems not to happen anymore!

  • After you have reinstalled Firefox 11, I don't have a button in the toolbar to display my favorites in the form of a menu drop-down.

    I recently reinstalled Firefox 11. I have more option of a drop down button bookmark in my default toolset. The Bookmarks button available only creates a sidebar instead.

    You see only the bookmarks Menu button if the menu bar is hidden (view > toolbars or Firefox > Options).

    If the bookmarks toolbar is visible then the bookmarks Menu button appears on the bookmarks toolbar, among other items in the toolbar of bookmarks (bookmarks).

    If the bookmarks Menu button appears on the right side of the Navigation bar.

    See also:

  • How can I disable the menu drop-down list on the back button?

    I use a laptop and my hands are not too clever. Whenever I click on the 'back' button, I get the drop-down list, which means that I must then back up my hand to the pad (gently!) to move the pointer, and then try again. It may take me several attempts to turn back a site now!

    I searched for hours how activate the drop-down list, nothing is done and even looked through all the settings in: config to try to find a way around it. Seriously impact my ability to use my laptop on the web now, so if someone can you please come up with a way to return to the old back button, with no menu when my finger slow old cannot move pretty fast down the key, I would be very grateful.

    There are two other ways to return to a page.

    • Right click on a box empty page you visit and use the dos command
    • From the keyboard, press {Alt + left arrow}

Maybe you are looking for

  • Broken BACKSPACE key, replacement? (Satellite L10)

    Cleaning of my key and the BACKSPACE key broke. Satellite L10 281 Anyone help out me on how I would go to get a replacement? Useless Toshiba site can't find one thing.

  • display the base directory in the finder

    How to view the base directory in the finder?

  • Scanner jam

    I have an Officejet Pro 8600, and I'm trying to scan a document using the Automatic Document Feeder. The driver retrieves the document, but then it starts to jam and gets stuck at halfway in. I tried to reset the printer and the cleaning of the rolle

  • Windows 8.1 update

    Recently upgraded my HP Pavilion g7 for windows 8.1 now my sound does not work to get everything and I have a message saying: it is not at all sound card.  And yet he was there before the upgrade.  I did not define a recovery and when you purchased t

  • Photo printing is blurred: HP Officejet Pro 8600 Plus

    Hello Recently I bought printer HP Officejet Pro 8600 Plus and I have no complaint about normal printing. Yesterday I bought HP Everyday Photo paper glossy and took some Photo impressions. to my surprise, I see that there are a lot of blur and a larg