Problem by placing the button in the action bar

Hey

I would like to add a button to the toolbar action and a few other actions menu antion. But the problem is that the button also appears in the action menu.

Here is the code:

actions:]
{ActionItem}

Title: "Option 1".

onTriggered: {}
page 1 of var = catalogue1.createObject ();
Navigational.push (page 1);
}
},
{ActionItem}
Title: 'Option 2 '.

onTriggered: {}
page 2 var = history.createObject ();
Navigational.push (page 2);
}
},
     
ActionItem
{
Title: 'button '.
ActionBar.placement: ActionBarPlacement.OnBar
                
onTriggered:
{
work here.
}
                
}
]

The button appeared on the action bar, as well as in the action menu.

Can someone help me?

This is 'normal' and what users would expect, this is why I would not recommend that you change it.

Having said that trapping however the signal AnimatingToVisibleFull or VisibleFull in the menu then hide or remove the action would be the way to go if you must.

http://developer.BlackBerry.com/Cascades/reference/bb__cascades__actionmenuvisualstate.html

Of course, a by-product of this is that it will disappear from the bar thus (perhaps make your app look a bit unstable).

Tags: BlackBerry Developers

Similar Questions

  • How to create navigation of the action bar on the right side.

    Hello

    Is there anyway to create the navigation of the action bar on the right side. I see a camera application can use it.

    MAZ

    I don't think that there are standard control that does this.

    You can create a container with DispositionAbsolue and place it outside the screen. LayoutUpdateHandler attached to the main container to obtain its dimensions. The second container "abscissa" can be set to the width of the main container, so it will be off the screen. Visibility of the initially fixed false container.

    When the button is pressed, show the container and drag it into the screen with animation.

    The container can contain any content, for example ListView with required components.

    It's just an idea, I have not implemented this specific scenario.

  • Customize the action bar footer Android app

    Hello

    I know my question is the same with this question in July:

    http://supportforums.BlackBerry.com/T5/Android-runtime-development/customize-the-action-bar-from-an-...

    However, I would like to know is there a plan in future OS release, where we can Autohide the action bar or customize the action with the custom action bar and icon?

    Thank you..

    Now you can completely eliminate the bar through XML, but that in the next 10.2.1 OS version.

    http://devBlog.BlackBerry.com/2013/12/Android-developers-eliminate-the-back-bar-in-your-10-2-1-app/

    However I have not seen yet any method of customization.

  • Disable the Animation of the action bar while hiding

    BB10 photos Soft mask the action bar when you tap on the screen. When you do so, the action bar disappears immediately.

    In an application of Cascades, if you:

    Page-> setActionBarVisibility (ChromeVisibility::Hidden);

    ... the action bar to slide down until it is no longer visible.

    I would like to disable this animation, but I don't know how. For the standard controls, I do things like:

    ratingControl-> setImplicitLayoutAnimationsEnabled (false);

    ImplicitAnimationController = allDisabled
    ImplicitAnimationController::create (ratingControl)
    . Enabled (false);

    ... but I'm not familiar with a way to get a reference to the action bar itself, or how, independently of any reference to disable animation.

    Thank you
    Daniel

    Hi Daniel,.

    If you switch between hidden and visibility for the ActionBar overlay it will appear/disappear without animation. Overlay, that's what the photos app uses so the image should not resize when the ActionBar toggle visibility.

  • Change the color of the development of the action bar

    Hi all

    Please help me on how to change the color of the focus of the action bar, the default color of the action bar is blue I want to change it to yellow.

    Thanks in advance.

    Do not think, that can be done with the latest version of the SDK.

    See this http://supportforums.blackberry.com/t5/Cascades-Development/How-to-change-tabbed-pane-background-col...

    -Dishooom

  • Is it possible to have different text in action on the action bar menu?

    I want to have the text in the action menu such as 'start my session' and have a title on the tab of the action bar that says only: "Meeting" from the beginning of that meeting is difficult to adapt. Is this possible?

    Thank you once again.

    The code...

    Page {
        actions: [
            ActionItem {
                id: aiFirst
                ActionBar.placement: ActionBarPlacement.OnBar
                title: qsTr("First")
            },
            DeleteActionItem {
    
            }
        ]
    
        onActionMenuVisualStateChanged: {
            if (actionMenuVisualState == ActionMenuVisualState.AnimatingToVisibleFull) {
                aiFirst.title = qsTr("First and still the best")
            } else if (actionMenuVisualState == ActionMenuVisualState.AnimatingToHidden) {
                aiFirst.title = qsTr("First")
            }
        }
    
        [ ... ]
    
    }
    
  • Is it possible to add part or refresh in the action bar.

    I have been seaching the forum but have not found anything, is there a way to add update and share on the action bar?

    The docs for jQuery Mobile / BlackBerry 10 can be found here, including the elements of the action bar:
    https://github.com/BlackBerry/jQueryMobile-BB10-theme/tree/master/docs

  • OK, this is a really stupid question, but I'm trying to add a soundtrack to a project in first 10 elements, and the aide said section "click music in the action bar to display the Panel of music." I can't find a 'Music' box to click around. Can someone p

    OK, this is a really stupid question, but I'm trying to add a soundtrack to a project in first 10 elements, and the aide said section "click music in the action bar to display the Panel of music." I can't find a 'Music' box to click around. Can someone tell me please in the right direction?

    cdmw

    If your program is first items 10

    a. you are in help for first items 11, not 10, and his description of the Action/music bar tab.

    or

    b. more unlikely since first elements 11 was not yet released, there is a typing error in the

    First Elements 10 help.

    In first 10, chronology workspace Elements, see Audio Tools (speaker icon) above the timeline and his choice of SmartSound.

    Please review and study and then we can then what to do next.

    Thank you.

    RTA

  • Limit the "Record Type" options in the section search for presentation of the action bar

    Is it possible to limit the options of 'Record Type' in the 'Search' section in the disposition of the action bar for users specific role.

    Thank you!

    Mahesh, if you uncheck the box to go to step 2 of the role that you would restrict access to these types of records in the section of the application and research in the action bar.

  • How to add the custom button on the action bar

    Hey guyzz how create a button custom action so bar showTabsOnActionBar: false as the search bar in the Blackberry world button and play in the music player

    It would be the signature action, available since 10.3
    https://developer.BlackBerry.com/native/reference/Cascades/bb__cascades__actionbarplacement.html#ENU...

  • Problem by placing the sum

    I have below result joinin three tables called TEST table
    I placed the cursor selection below
    ID     Grp     loc     type     Sum_Lower_1     sum_upper_1     Sum_qty_3
    101     abc     x     1     50     200     0
    101     abc     x     3     0     0     80
    102     abc     x     1     100     400     0
    102     abc     x     3     0     0     450
    103     abc     x     1     500     2000     0
    103     abc     x     3     0     0     230
    104     abc     x     1     30     120     0
    104     abc     x     3     0     0     50
    the result should find id, grp, loc for the followin condn. and we do the deletion of another table for these values

    If sum_qty_3 < sum_lower_1 for particular id, grp, loc

    If we take 101, abc, x 80 then < 50, so it fails

    sum_qty_3 > sum_lower_1 for particular id, grp, loc

    If we take 101, abc, x 50 then > 250, so it fails

    So, the line does not refer to this id, GRP, loc

    Finally, we should have the results below
    ID     Grp     loc
    102     abc     x
    103     abc     x
    If sum_qty_3 < sum_lower_1
     delete from product where id = 103 and grp = 'abc' and loc = 'x' and f_type = 2000 
    If sum_qty_3 > sum_lower_1
     delete from product where id = 102 and grp = 'abc' and loc = 'x' and f_type = 1000  
    How can I achieve this by using the slider or any other way

    Please help me

    Thanks in adv

    Published by: user12093849 on November 27, 2009 03:56

    Published by: user12093849 on November 27, 2009 04:08

    Is that what you are looking for?

    select * from test;
    O/P
    ID     GRP     LOC     TYPE     SUM_LOWER_1     SUM_UPPER_U     SUM_QTY_3
    101     abc     x     1     50                                 200         0
    101     abc     x     3     0                                     0       80
    102     abc     x     1     100                                  400        0
    102     abc     x     3     0                                      0     450
    103     abc     x     1     500                                 2000     0
    103     abc     x     3     0                                       0     230
    104     abc     x     1     30                                    120     0
    104     abc     x     3     0                                        0     50
    
    SELECT * FROM(
    SELECT id, grp, loc, sum(Sum_Lower_1 )sum_l,SUM(Sum_Upper_u) sum_u,SUM(sum_qty_3) qty_3 FROM Test
    GROUP BY id,grp,loc)
    WHERE sum_l  qty_3 /* you may have to change the greater than condition, i am confused by your data and the o/p you expect
    in the original post */
    
    O/P
    
    ID     GRP     LOC     SUM_L     SUM_U     QTY_3
    101     abc     x     50     200     80
    104     abc     x     30     120     50
    

    See you soon!
    Bobin

  • Added a section to the "action bar.

    Can we add a custom left section "Action bar"? If so, how?

    Hi, you can very well by creating a global webapplet and select the location as "Action Bar"

    -John CRMIT

  • problem by placing the tool position line

    Hi, can someone solve this problem.

    I have created the script for the online tool, but it works does not in particular place. I'll explain in detail.

    Ms job

    I / p: America is a country [SL 10].

    Error output: America is a country...   (or)  ................. America is a country (or) America... is a country (rule puts somewere if I correct position)

    Original output should be like this

    Error output: America is a... country

    I need underscore 10 mm instead of [SL 10]

    It should replace [SL 10] and put a 10 mm rule in this position.

    In my script for the rule is created, but the rule is to put some were elsewhere. Please solve this problem. I created the library also for [SL10].

    Here is my script coding

    app.findTextPreferences = null;

    app.changeTextPreferences = null;

    app.findChangeTextOptions.caseSensitive = false;

    app.findChangeTextOptions.includeHiddenLayers = true;

    app.findChangeTextOptions.includeLockedLayersForFind = true;

    app.findChangeTextOptions.includeLockedStoriesForFind = true;

    MyDoc = App.activeDocument;

    app.findTextPreferences.findWhat = "[SL 10] '"

    myFounds = mydoc.findText ();

    var myLib = app.libraries.item (0);

    var myassets = myLib.assets.item ("SL10");

    for (i = 0; i < myFounds.length; i ++)

    {

    myFound = myFounds [i];

    myFound.remove ();

    myAnchorrule = myassets.placeAsset (myFound.insertionPoints [0]) [0];

    myAnchorrule.appliedObjectStyle = mydoc.objectStyles.item ("SL");

    }

    Hi Rajesh2373,

    I changed your JS code. Please check it out.

    mydoc=app.activeDocument;
    var myLib=app.libraries.item(0);
    var myassets1=myLib.assets.item("SL10");
    
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    app.findTextPreferences.findWhat="[SL 10]";
    myFounds=mydoc.findText();
    for(i=myFounds.length-1;i>=0; i--)
    {
        myFound=myFounds[i];
        myAnchorrule=myassets1.placeAsset(myFound.insertionPoints[0])[0];
        myFound.remove();
        }
    
    var myassets2=myLib.assets.item("SL20");
    
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    app.findTextPreferences.findWhat="[SL 20]";
    myFounds=mydoc.findText();
    for(i=myFounds.length-1;i>=0; i--)
    {
        myFound=myFounds[i];
        myAnchorrule=myassets2.placeAsset(myFound.insertionPoints[0])[0];
        myFound.remove();
        }
    
    var myassets3=myLib.assets.item("SL30");
    
    app.findTextPreferences=null;
    app.changeTextPreferences=null;
    app.findChangeTextOptions.caseSensitive=false;
    app.findChangeTextOptions.includeHiddenLayers=true;
    app.findChangeTextOptions.includeLockedLayersForFind=true;
    app.findChangeTextOptions.includeLockedStoriesForFind=true;
    app.findTextPreferences.findWhat="[SL 30]";
    myFounds=mydoc.findText();
    for(i=myFounds.length-1;i>=0; i--)
    {
        myFound=myFounds[i];
        myAnchorrule=myassets3.placeAsset(myFound.insertionPoints[0])[0];
        myFound.remove();
        }
    

    THX,

    csm_phil

  • problems by placing the cursor on my Web page (please help)

    im not very good at web design and my last year in College, create a Web site.

    Basically I have a jquery slideshow on the homepage of my site. I placed in my HTML but everything seemed moved and I don't know how to move the real cursor with css.

    so far, this is the site: http://anishjoshi.net23.NET/

    anyone would be grateful for tell me why everything happened and how to fix it back. and also move the slide down to adjust the box.

    cheers in advance

    Try this (view source to see the code)

    http://ALT-Web.com/test/2-column-test.html

    The body background color is #222222. It is the repeating background image that I use (mosaic of 100 x 100 px) in 4 major areas.

    Nancy O.

    ALT-Web Design & Publishing

    Web | Graphics | Print | Media specialists

    http://ALT-Web.com/

    http://Twitter.com/ALTWEB

    http://ALT-Web.blogspot.com/


  • Problems by placing the text of the word

    I am placing a MS word doc text in my master pages in InDesign and it imports only the part of the text, the first 8 pages and after a lot of blank pages, I see the little red as well as in the box in the lower right corner of the text box, but no matter how many times I continue the flow to the next column the rest of the text will not appear. The MS doc is in the fonts, I did not, but I thought I could do a search and replace once the text flows in because there are a lot of bold and italic, put in shape that I don't want to lose by copying and pasting from Word into InDesign. Anyone have any idea why this is happening, or what I can do to get around all of the 36 pages of text?

    I often see complete Word of the nonbreaking spaces files, too. It is disabling the break a too large number of nonbreaking space online to send the rest of the doc in excess. It is not rare AT ALL when you crop in ID, especially if the column width is different. A picture of great line that would too.

    In addition to reviewing the file in Word, you can place the cursor to the last point see you text in ID and open the story editor to see what is beyond. If it's not obvious (turn on nonprinting characters that you can see the nonbreaking spaces), choose the first two paragraphs in excess and leave the Dungeon options (can be on all lines solidarity or solidarity than hass all the lines together and have too many lines to fit to a page) or No Break is applied to the first line in excess. Check hyphenation, as well.

Maybe you are looking for