ActionBar / bbUI.js - event onclick in the Menu tab overflow of unmarked tab

Hello

I use the collection of great bbUI.js for my application.

Thanks to the team of developer for such things.

Is it possible to trigger an onclick event to a tab that is not marked as action of overflow in the tab overflow Menu or to hide the tabs not spotted in the overflow Menu?

Currently the tabs not spotted inside the overflow Menu is any cause at the end of the onclick event missing.

I hope that someone has ideas for my problem.

Thanks for the tips!

Moritz

Thanks for the tip.

I opened a new show.

The link for those interested:

https://github.com/BlackBerry/bbUI.js/issues/259

Tags: BlackBerry Developers

Similar Questions

  • How to assign the event onClick for the Panel?

    Hello world!

    Now I choose the color by pressing the button and show through the paint of the Panel. I want to remove the button and clicking on the panels only - colored rectangles. This is possible?

    color1.jpg

    ////////////////////////////////////////////////////////////////////////////////////////// ///////////////////

    Iconbutton and edittext button color

    ////////////////////////////////////////////////////////////////////////////////////////// ///////////////////

    #target photoshop

    //

    Choose your 2 colors here:

    colour1 var = [0.30, 0.00, 0.80, 1]; myIconButton color's alpha chanel (1 = opaque)

    Color2 var = [1.00,0.85,0.70];

    var dialogBackgroundColor = [0.55,0.55,0.45];

    var selectedColor = "you must select a color ';

    var w = new window ("dialog", "Example", undefined, {without borders: false, closeButton: false}); {without borders: true, closeButton: false}

    w.orientation = "Column";

    w.Margins = [0,20,0,0];

    w.Size = {width: 320, height: 160};

    w.graphics.backgroundColor = w.graphics.newBrush (w.graphics.BrushType.SOLID_COLOR, dialogBackgroundColor, 1); COR fundo

    IconButton (OPTION 1)

    var p = w.add ('group');

    myIconButton var = p.add ('iconbutton', [0,0, defined, undefined], undefined, {style: "toolbutton"}); // , vy

    myIconButton.size = [20,20];

    myIconButton.fillBrush = myIconButton.graphics.newBrush (myIconButton.graphics.BrushType.SOLID_COLOR, color1); IconButton color

    myIconButton.text = ""; do not use text on iconbutton

    myIconButton.textPen = myIconButton.graphics.newPen (myIconButton.graphics.PenType.SOLID_COLOR, [0.8,0.6,0.3,1], 1); the iconbutton text color (not used here)

    myIconButton.helpTip = "SΘlectionner your color here."

    myIconButton.onDraw = customDraw;  operate the bellows (a must have on any iconbutton so that it is drawn correctly)

    text beside iconbutton

    var myIconButtonStatictext = p.add ("statictext', undefined");

    myIconButtonStatictext.text = "color 1";

    myIconButtonStatictext.preferredSize = [200.20];

    EDITTEXT button (OPTION 2)

    var m = w.add ('group');

    var myEditText = m.add ("' edittext ', undefined, {without borders: false});

    myEditText.graphics.backgroundColor = myEditText.graphics.newBrush (myEditText.graphics.BrushType.SOLID_COLOR, color2, 1); EDITTEXT color

    myEditText.graphics.foregroundColor = myEditText.graphics.newPen (myEditText.graphics.PenType.SOLID_COLOR, [0.5,0.4,0.35], 1); color of the text in edittext (not used here)

    myEditText.graphics.font = ScriptUI.newFont ("Arial", "BOLD", 16)

    myEditText.helpTip = 'SΘlectionner your color here.';

    myEditText.text = "";

    myEditText.preferredSize = {width: 20, size: 20};

    text next to the button edittext

    var myEditTextStatictext = m.add ("statictext', undefined");

    myEditTextStatictext.text = "color 2";

    myEditTextStatictext.preferredSize = [200.20];

    The button

    var doneBT = w.add ('button', undefined, 'Done');

    doneBT.preferredSize = [50,20];

    end/Cancel button

    var closeBT = w.add ('button', undefined, 'Cancel');

    closeBT.preferredSize = [50,20];

    Define event listeners that implement the behavior for the user interface components

    myIconButton.onClick = function() {}

    myIconButtonStatictext.text = "Color 1 selected!";

    myEditTextStatictext.text = "color 2";

    selectedColor = "chose the color was" + color1;

    }

    myEditText.onClick = function() {}

    myEditTextStatictext.text = 'Color 2 choose!';

    myIconButtonStatictext.text = "color 1";

    selectedColor = "chose the color was" + Color2;

    }

    doneBT.onClick = function() {}

    Alert (selectedColor);

    }

    w.Show ();

    It is important to have this when you draw an iconbutton

    function customDraw() {}

    with (THIS) {}

    graphics.drawOSControl ();

    graphics.rectPath (0, 0, size [0], size [1]);

    FillPath (fillBrush);

    affects only the text if exist within iconbutton (if you don't use a text inside the iconbutton, you don't need this)

    ~ If {(text)

    ~ graphics.drawString (text, textPen, (size [0] - graphics.measureString (text, graphics.font, size [0]) [0]) / 2, 3, graphics.font);

    //~         }

    }

    }

  • How can I remove the item from the menu tab "Mute"?

    43 Firefox seems to have added a silent tab item to the right-click menu on the tabs. Where is the new element of the tab used to sit, so I'm constantly hit the darn dumb tab button when trying to make a new tab.
    Is it possible to get back to this?

    I do not fear the icon/button for tabs allow you to read audio data. This is actually very useful.

    I use Cyrco, but I guess that's a Firefox thing, because I can't find it in the Cyrco options.

    Dumb tab is a new item in Firefox 42 or 43. Cyrco probably inherited. But I would look to Tab Mix Plus for a fix because Firefox (A) allows you to change the context menus and TMP (B) is already change the list in any case.

    There is a recent development for the test version, but I don't know if it meets this problem:

    https://addons.Mozilla.org/firefox/addon/tab-mix-plus/versions/

  • Vista Task Manager 64 bit SP2 no longer shows the menu tabs or ifo is it repairable?

    After an upgrade, I have encountered this problem:

    The Task Manager no longer shows menu(File/Options/Viwe/Help) or info tabs(Application/Process/Performance/Networking/Users) is it repairable?

    Operating system is Microsoft windows 64-bit with service pack 2 installed.

    Hello

    Double-click inside the border of the Task Manager to bring it back to Normal mode

    How to switch between Normal Mode and small footprint in Vista and Windows 7 Task Manager

    http://www.Vistax64.com/tutorials/114377-Task-Manager-small-footprint-mode.html

  • Run the menu error

    Hello world

    I run intoanother apparently simple problem, but I just can't get my head around it.

    I want to set up a simple menu of execution of a control where the user can select different options.  RTM reviewed and set by default no problem.  Right-click on the control when running, the correct menu does appear, no problem.

    Problem arises when I want to set the menu checked or unchecked entry. My problems are:

    1. Why didn't - not the refnum menu that appears in the "Selection of the Menu?" events (user)  Do I have to intercept the reference of the event "Meu activation?" menu for control?
    2. When I catch the reference in this way (changes reference to each menu selection), I get "Menu invalid 1160 error" when I try to change the items in checked or unchecked...  I store the reference in a registry to offset for later use when a different menu event is triggered.

    Can someone please take a look at this VI and let me know what I am doing wrong?

    Why the run menu not can not simply be read of the property of a control node?  It would be so easy.   Or if I know the name of file for rtm, how can I get a valid reference to it?

    Sorry what are silly questions, but I just can't understand it right now.

    All screws are 8.2.1.

    Thank you

    Shane.

    "When I catch the reference in this way (changes reference to each menu selection), I get"Menu invalid 1160 error"when I try to change the items in checked or unchecked...". »

    Make these changes in "activation of the Menu (user) selection event?

    The menu "(user) the Menu selection event" is after the display was done, so it is normal is not to place a check (make a change)

  • How to close the menu that is opened when you click on the menu button?

    Hello

    When the user clicks the menu button, menu appears.

    Now menu is not closed & my screen behind the menu is updated due to a callback function.

    So, I want to update my menu again accordingly.

    How can I update this menu or close the menu which is open?

    Is it possible to dindane who?

    Yes... His work.

    I tried compact as well, but it did not work in multithreading where I wanted to close the menu on the response of one or two wires.

    It was necessary to aquire lock application event to close the menu in this senario.

    Thnx, it is now resolved...

  • The buttons in the menu do no work on a single page of the site tablet. Everything else works.

    I recently updated my sites for desktop and Tablet with a slide show. Now when someone selects that specific page in the view of the Tablet all top-level menu buttons do not work. If I go to another page in the view of the tablet on the menu buttons work. Could there be a problem with the slide show?

    Here is a link to the tablet version of this page that does not work... www.omnifysoft.com/ouc/tablet/speakers.html try to select one of the menu buttons. Here is a link to another page in the view of the Tablet and the menu at the top of work www.omnifysoft.com/ouc/tablet/agenda.html links

    Note, the link at the bottom of the page also works is specific to the menu on the referenced page.

    For any help or suggestion would be greatly appreciated.

    Thank you

    Lyrics

    Stacking of elements of the issues on the web. The top item in a stack receives all mouse events (whether filled or completely transparent). In this case, it seems to be a text frame large on the top menu where carriage returns are be used to position the speakers 'CONFÉRENCE' and «We have an exciting...» "on the page. This block of text blocks mouse events to reach the menu.

    I recommend using a block of text a lot more small "SPEAKERS" and a second block of text because "We have an exciting..." "If blocks of text are smaller their bounding rectangles will not interfere with your menu or other elements/links on the page.

  • Event OnClick TabNavigator ACEs-based

    I know that you can create an event onClick for the tabnavigator to the mxml document:

    < mx:TabNavigator id = "myTab" width = "100%" height = "100%" change = "fnClick ()" >

    But is it possible to do with ActionScript 3.0? So far, they have not worked:

    • myTab.addEventListener (Event.CHANGE, onChangeTabIndex);
    • myTab.addEventListener (Event.TAB_INDEX_CHANGE, onChangeTabIndex);
    • myTab.addEventListener (MouseEvent.CLICK, onChangeTabIndex);
    • myTab.addEventListener (IndexChangedEvent.CHANGE, onChangeTabIndex);

    Any ideas?

    It's definitely the one specified in the source: 
    
    View Stack source (TabNavigator extends ViewStack and does not override this)
    
  • Tab of the menu in the Menu bar does not open in Firefox 38.0.1.

    When I try to open the Menu tab in the Menu bar, nothing happens. If something when I click Menu a very small square appears under the underlined M, then disappears when I click on it again. All the other tabs on the Menu bar of the HelpFile works just fine. I uninstalled Firefox 38.0.1 the reinstalled again and the problem persist. I even went back to 37.0.2 but the problem persists even if it didn't happen when I was running 37.0.2 before installing 38.0.1. It is worth noting that I've actually upgraded to 38.0.1 17/05/2015 and everything has worked fine until today.

    I don't have a Menu on my menu bar, just:

    File Edition display history bookmarks tools help

    Is this something created by one of your extensions? What was this about?

  • When you click on the tabs in the menu images appear, instead of menu drop down ordinary can this be corrected?

    When in Firefox, click the menu tabs ex: File, Edit, View etc... I get an image repeated but vague and smaller from what I see on my Web page. The drop down menu appears small and unreadable.

    I wish I could include the screenshot of the problem

    Try disabling hardware acceleration in Firefox.

  • Spry Menu tabs with click to enlarge the Images

    Argh! I tried several ways to include a javascript "click to enlarge" in the menu tabs does not. I don't know enough about JS to know if there is a contradiction or what, but I know enough to know that I need help, you know?

    All suggestions are welcome! The site is www.trainingofthought.com

    Your site could use a good cleaning.  But that hand, look at the CSS option I posted for the OP in this other thread.  CSS re-scales an image on mouseover.

    Re: the thumb picture as a link with the large photo?

  • Implement the 'New tab' feature in the tabbed pane

    Hello

    I wanted to design feature 'New tab' in my application of cascades in same way that we found in the browser native avaialbe on system Z10.

    On the left sidebar, it states:

    Bookmarks

    History

    New tab

    Tab 1                    |--------------------------

    Tab 2                    |

    Tab 2                    |

    ........

    Tab n                    |-----------------------------

    I know that TabbedPane provides functions like add, insert, delete can be used to manage the tabs in the tabbed pane. But they show cahnges in the level list root of the tabs.

    1 how we can implement similar user interface design?

    1.1 how to add newly created list tab under the menu tab "new tab"?

    1.2 How to provide on each newly created tab close button?

    Could someone please guide me to make this UI?

    Thanks in advance.

    He's right, because while the browser uses WebWorks, you use stunts where the TabbedPane is not customizable in this way (at least not close buttons).

    You can certainly make a tab that says 'New tab', however, and have in fact insert a new tab and then switch to him. How to do this should be pretty obvious once you have read the documentation of the API TabbedPane.

  • How to create the scroll to the menu icon click event bar

    How to create the scroll to the menu icon click event bar

    (as the "field of scrolling image")

    In my opinion, it is better for you to try something to help implementation of your solution to ask for the code.

    For example, create a few BitmapFields with icons that act as buttons.  There is source for this sort of thing on the forum if you look at, I think, looking FRO Image button, icon or Bitmap button.

    Once you have these buttons work, add these in a HorizontalFieldManager.

    Good luck.

  • ComboBox does not send keyboard and no event click the menu drop-down.

    I use a ComboBox to search in my application. The application is a periodic table, then the user will be able to search by name of element, atomic number or a symbol. The ComboBox control is working very well, I just have two questions that I was wondering if someone could lead me in the right direction. The first problem is that, when a user clicks the ComboBox for a search entry, the keyboard does not dispatch. The user must use the native swipe gesture to display the keyboard. This isn't a huge problem, but I would really like to work for when the user clicks the ComboBox keyboard is distributed. IV ' e looked in this and concluded that it should work, ComboBox with a property TextInput keyboard should appear, but it doesn't. I also discovered that it is impossible to show/hide the keyboard with the code. I use FB 4.5 and 4.5 Flex and the most recent SDK Tablet from BlackBerry. Y at - it a bug or something?

    Also my other question is once the user starts typing in the search, the filter works great and the drop down displays all of the possibility. But my only problem is the user cant just click and the item in the drop-down menu. For example when the user types "A" all items that begin with a show upward in the drop down menu. The user cannot click on an element. The only way that the element can be selected is if the user continues typing the word until it is highlighted as the only option and then enter hits. This too is not a huge problem, but I like it to work so that if the user types 'A' they can do scroll down the menu and select the item they want. IV also looked into this and can't seem to find anyway to drop down the combobox list have a click event. I'll put a code later that you can see what I mean better, but for now its kind of a general questions. I use FB 4.5 version release and flex 4.5 with the new SDK of BBT. If someone can point me in the right direction, or send me any article that would be GREAT. Thanks in advance!

    It is probably easier than you think:

    1. Create a text input control
    2. Add event listeners when the control is changed ('change')
    3. Maintain an internal table of valid matches
    4. On the change event listener, browse each item and make a match that makes sense.  For example, to cut spaces beginning and end and do a string comparison of tiny out based on the length of a text entry field.  For example, if the user types "vel", which would correspond to "Developer" and "velcro".
    5. Create a list control that is displayed once the person begins to type.  Place it under the control of text entry.  Use the local to global changes in coordination and the size of the width of the list of the same width of the text input.
    6. # 4, dump all the data of the list data provider and add items to it based on string matching.  If no match or the text input text is empty/void/null, do not show the list.
    7. If the user selects an item in the list, hide the list, enter the selection to text entry and then send an event that the entry is "finished".
    8. Listen to the event "full" text of entry to perform what you wanted.

    Of course, if anyone can suggest how to get the Combox to work, go ahead.  I have just a habbit to create controls to achieve the appearance and the behavior I'm looking for.

    Good luck.

  • How to display the menu on the my button click event

    I need to show the menu on clickevent on my button and menuitems will be different for the different buttons. How to do this.

    I have the substitution makemenu like that method.

       protected void makeMenu(Menu menu, int instance) {
            super.makeMenu(menu, instance);
            menu.deleteAll();
    
            if (categoryFlag) {
            for (int i = 0; i < list.size(); i++)
                    {
                menu.add(newMenuItem(list[i], 110,10+i) {
                        public void run() {
                        callMeWithScrollField(0);
                        }
                        }
                        );
            }
                menu.setOrigin(categories.getExtent().x, Display.getHeight());
            } else if (optionFlag) {
    
                menu.add(subscriptionMenu);
                menu.add(reOrderMenu);
                menu.add(aboutMenu);
                menu.add(feedBack);
                menu.setOrigin(option.getExtent().x, Display.getHeight());
            }
    
            menu.show();
    
        }
    

    But it shows the menu twice.

    Sorry my mistake.

    You will not be able to do what you want using makeMenu.  Instead, you will need to override onMenu() to the screen.  Here's a sample:

    {} public boolean onMenu (int instance)
    super.makeMenu (menu, for example);
    NewMenu menu = New Menu();
    newMenu.add (new MenuItem ("Test", 110,10) {})
    public void run() {}
    }
    }
    );
      
    newMenu.show ();
    Returns true;
    }

Maybe you are looking for