Problem drag buttons on bottom toolbar in IB

I add a toolbar in the bottom view by IB. But I can not drag UIBarItem or button on the toolbar. The button bounced back and did not appeared on the toolbar. It also happened for Navigation Bar. Anything wrong?

Thanks for the thorough answers to my questions, Charlie.
CharlieCL wrote:
I set the toolbar in the view selection from unspecified to toolbar. There is no
button on the toolbar.
I think you've been trying to add a real toolbar object by asking IB to display a simulated toolbar at the bottom of your view.
When you select your content view in IB, open the Attributes Inspector and expand the "Simulated User Interface Elements" panel, you have the choice of adding placeholders to your view. These can be very useful when the view controller's edit window doesn't display a bar which will be visible at run time.
For example, if you create a nav controller in your code, its nav bar will normally be visible at the top of every controlled view--i.e. the view of each controller on the stack--at runtime. But you won't see that bar in the xib file belonging to each of those controllers. That's when you might want to add a "simulated nav bar" to the edit window. The placeholder keeps you from accidentally putting some of your view content where it will be covered by the bar, and lets you see how the screen will look at runtime.
Since a simulated bar never causes a real bar to be created at runtime, IB won't let you add controls to that bar.
So the solution to your question is to always drag a bar object from the IB Library when you intend to specify creation of a real bar at runtime. You shouldn't have any problem adding controls to a bar you obtain from the Library (as you confirmed in the answer to question 4).
\- Ray

Similar Messages

  • Enable/disable problem with button on table toolbar

    Hello *,
    In my WD (ABAP) application, on a view I have a table, a toolbar within it and buttons on the toolbar. I am trying to control 'enable' property of one button, binding it to an attribute in view's context.
    When I do this trick just for any button on the view which is not on the toolbar, it works just fine. But when the button is placed on table's toolbar - it just stays disabled all the time.
    Normally I bind enable property to an attribute in the <b>root</b> node. When I change attribute value, the 'normal' button responds correctly (getting enabled or disabled), but the <u>table toolbar button</u> <b>does not</b>. I start wondering if table controls (like toolbar and its buttons) has something to do with a node the table is bound to?
    Any comments about special features of toolbar and its buttons being placed in a table?
    Thanks!

    Looks like a bug to me. There is nothing special with toolbar buttons vs. "normal" buttons (at least not in Web Dynpro Java).
    Armin

  • How to drag and drop button between two toolbar?

    Hi,everybody :)
    i hava a problem :
    if i have two toolbar in a frame , and there are some button in each, how can i use dnd package to drag and drop button between two toolbar,such as drag one button in a toolbar to the other toolbar ,i write some sample code ,but find some difficult to finish
    can anyone give me some example code?
    Thanks!

    hi:)
    i have done it ,but there is another problem ,after i finish drag the button and drop it into the toolbar,if my mouse across the dragged button ,it will change the color ,can i setup any mathod to disappear the side_effect?
    thank u
    click open to show the other frame
    and the code is as follows:
    import java.awt.*;
    import java.awt.datatransfer.*;
    import java.awt.dnd.*;
    import java.awt.event.*;
    import java.io.*;
    import javax.swing.*;
    public class buttondrag implements DragGestureListener, DragSourceListener,
    DropTargetListener, Transferable{
    static JFrame source = new JFrame("Source Frame");
    static JFrame target = new JFrame("Target Frame");
    static final DataFlavor[] supportedFlavors = { null };
    static {
    try {
         supportedFlavors[0] = new DataFlavor(DataFlavor.javaJVMLocalObjectMimeType);
    catch (Exception ex) {
         ex.printStackTrace();
    } Object object; // Transferable methods.
    public Object getTransferData(DataFlavor flavor) {
    if (flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType)) return object;
    else{
    return null;
    public DataFlavor[] getTransferDataFlavors() {
         return supportedFlavors;
    public boolean isDataFlavorSupported(DataFlavor flavor) {
         return flavor.isMimeTypeEqual(DataFlavor.javaJVMLocalObjectMimeType);
    } // DragGestureListener method.
    public void dragGestureRecognized(DragGestureEvent ev) {
    ev.startDrag(null, this, this);
    } // DragSourceListener methods.
    public void dragDropEnd(DragSourceDropEvent ev) { }
    public void dragEnter(DragSourceDragEvent ev) { }
    public void dragExit(DragSourceEvent ev) { }
    public void dragOver(DragSourceDragEvent ev) {
         object = ev.getSource();
    public void dropActionChanged(DragSourceDragEvent ev) { } // DropTargetListener methods.
    public void dragEnter(DropTargetDragEvent ev) { }
    public void dragExit(DropTargetEvent ev) { }
    public void dragOver(DropTargetDragEvent ev) { dropTargetDrag(ev); }
    public void dropActionChanged(DropTargetDragEvent ev) { dropTargetDrag(ev); }
    void dropTargetDrag(DropTargetDragEvent ev) { ev.acceptDrag(ev.getDropAction()); }
    public void drop(DropTargetDropEvent ev) {
         ev.acceptDrop(ev.getDropAction());
         try {
         Object target = ev.getSource();
         Object source = ev.getTransferable().getTransferData(supportedFlavors[0]);
         Component component = ((DragSourceContext) source).getComponent();
         Container oldContainer = component.getParent();
         Container container = (Container) ((DropTarget) target).getComponent();
         container.add(component);
         oldContainer.validate();
         oldContainer.repaint();
         container.validate();
         container.repaint();
         catch (Exception ex) {
              ex.printStackTrace();
              ev.dropComplete(true);
    public static void main(String[] arg) {
    JButton button = new JButton("Drag this button");
    JToolBar sbar = new JToolBar();
    JToolBar dbar = new JToolBar();
    JButton open_button = new JButton("Open");
    source.getContentPane().setLayout(null);
    source.setSize(new Dimension(400, 300));
    sbar.add(button);
    sbar.setBounds(new Rectangle(0, 0, 400, 31));
    sbar.add(open_button);
    open_button.addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
    target.setVisible(true);
    source.getContentPane() .add(sbar);
    target.getContentPane().setLayout(null);
    target.setSize(new Dimension(400, 300));
    target.getContentPane().add(dbar);
    dbar.setBounds(new Rectangle(0, 0, 400, 31));
    dbar.add(new JButton("button1"));
    buttondrag dndListener = new buttondrag();
    DragSource dragSource = new DragSource();
    DropTarget dropTarget1 = new DropTarget(sbar, DnDConstants.ACTION_MOVE, dndListener);
    DropTarget dropTarget2 = new DropTarget(dbar, DnDConstants.ACTION_MOVE, dndListener);
    DragGestureRecognizer dragRecognizer1 = dragSource.createDefaultDragGestureRecognizer(button, DnDConstants.ACTION_MOVE, dndListener);
    source.setBounds(0, 200, 200, 200);
    target.setVisible(false);
    target.setBounds(220, 200, 200, 200);
    source.show();
    }

  • Problems with getting a custom toolbar button to work...

    Hi all,
    I'm using the 7.0.1 eval version of GroupWise, patched to 7.0.2 HP 6/6/2007.
    The server is the same version.
    I'm trying to put a new button on the toolbar in C# (with the
    GW.CLIENT.WINDOW.BROWSER context) - the button shows up as expected. It also
    gets validate events - quite frequently and my code always returns 0 from
    Validate() and the button is always enabled. However, no matter what I do, I
    never get an Exectute() call on the command object I create for this button
    when I click it. I also tried the GW.CLIENT context, in which case the
    button shows up in the same place (main GW client toolbar), and it behaves
    the same.
    If I try to create the button with the GW.MESSAGE.MAIL context and I
    double-click emails, the button shows up on the toolbar of the message
    window. When I click this button, I properly get Execute() calls. I also
    have no problem getting context menu items working.
    Is there anything special I need to do to get callbacks for buttons on the
    main toolbar?
    Thanks,
    Gyorgy Bozoki

    These instructions from Mediacom differ slightly from what you have:
    http://mediacomcable.com/CustomerSupport/troubleshooting/email%20getting%20started/HowdoIsetupmyAndroidSmartphonetouseMediacome-mail.html

  • Why cant i re-add gmail button on google toolbar? 4.01 is not good, I have never had a problem with your products..Whats going on??

    Question
    Why cant i re-add gmail button on google toolbar? 4.01 is not good, I have never had a problem with your products..Whats going on??

    http://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks

  • When I click on a result of a Google search and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results.

    When using FF3.6 and making a Google search, when I click on a result and then go that web site, the Back button on the toolbar is grayed out and I cannot return to the search results without going to History. This does not happen all the time; about 1/2 of the time.
    This problem is not limited to Google, but occurs with other sites as well.

    If you are talking about searches from - http://www.google.com/ - are you logged into a Google account all the time? If so, check your "Search Settings" from the "gear" in the upper-right corner of that Google search page and see if you have '''Open search results in a new browser window.''' check-marked, at the bottom of that preferences page. When that is check-marked and you have Tab options in Firefox set to '''Open new windows in a new tab instead''', you will get search results always opening in a new tab instead of the same tab. As to why that works different for "sponsored links" I don't know, I haven't seen the "sponsored links" for years now, I have a GM script that blocks those advertisements.

  • Unableto get rid of classic theme--I HATE SQUARED TABS & I miss the bottom toolbar that tells me where I am in the process of going to a new page.

    1. How do I get rid of classic theme?--hating squared tabs.
    2. Where is bottom toolbar that lets me know (as with emptying trash on my Mac) where I am in the process of going to a new page??

    Make sure that you do not run Firefox in full screen mode (press F11 or Fn + F11 to toggle; Mac: Command+Shift+F).
    *https://support.mozilla.org/kb/how-to-use-full-screen
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • TS4062 I'm trying to sync my ipad over wifi, with my MAC, I have the updated software on my MAC, the ipad is up to dat 6.1.2.  I can follow all of the steps, but I can't find a SUMMARY button on the toolbar, nor do I receive the option to sync.  Whats wro

    I'm trying to sync my ipad over wifi, with my MAC, I have the updated software on my MAC, the ipad is up to dat 6.1.2.  I can follow all of the steps, but I can't find a SUMMARY button on the toolbar, nor do I receive the option to sync.  What am I doing wrong or what should I look for?  Thank You

    To sync your iPad over Wifi:
    First ensure you're running iTunes 11.0.2. And you already have your iPad up to date, good.
    Plug your iPad into the Mac via USB. Click your iPad in the top toolbar (under the search bar). Click the Summary tab if it isn't already selected. Check the box to "Sync with this iPad over Wi-Fi" (you may have to scroll down to see it). And now click the Apply button at the bottom right.
    You should be able to unplug your iPad from the Mac and it should still remain in iTunes. (If not, try Quitting and relaunching iTunes and waiting, restarting iPad, etc).
    To initiate a sync over Wifi, click your iPad in the toolbar in iTunes then click Sync. Or on your iPad, go to Settings > General > iTunes Wifi Sync and tap "Sync Now."
    If this didn't solve your problem, please let me know with a more detailed explanation of what you're experiencing so I can try to help you get up and syncing wirelessly!

  • Problem with buttons in background

    Viewing the problem problem:
    http://www.ucsdkya.com/ >
    (you can skip the intro via link in top right) > cilck on the
    moon in upper right .
    When the new movie has loaded (its on Level 1), the buttons
    below it (on Level 0) still make their noises. How do I stop the
    response of these buttons?

    Mr. Rish wrote:
    > Viewing the problem problem:
    http://www.ucsdkya.com/ >
    (you can skip the intro
    > via link in top right) > cilck on the moon in upper
    right .
    >
    > When the new movie has loaded (its on Level 1), the
    buttons below it (on Level
    > 0) still make their noises. How do I stop the response
    of these buttons?
    Buttons remain their full functionality across multiple
    levels, always.
    There is few things you can do to avoid it:
    1)
    While loading something in level 1, send level0 timeline to
    an empty frame
    w/o any content using regular gotoAndStop() action.
    2)
    Place big button on bottom layer of the movie in level1.
    Buttons can't work across
    buttons so the big one will eliminated any button below, they
    still there tho
    you can't click them. You can then deactivate the hand
    pointer so the mouse cursor
    won't react to that big button using action like
    btn.useHandCursor = false;
    3)
    You could deactivate the buttons directly using btn.enabled =
    false; while to content
    is loaded and activated them when you need it back using
    btn.enabled = true;
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • Button in ALV toolbar with REUSE_ALV_GRID_DISPLAY

    Hello friends,
    I am Displaying ALV using REUSE_ALV_GRID_IDSPLAY. i need to add a button in grid toolbar.
    i am doing it by adding a new ZSTATUS in  SET PF_STATUS. but the problem is that it is removing the standard buttons.
    i want to add button without removing the standard butttons.
    Please help.
    thanx in advance.
    Krishan Kumar

    hai friends.......
                       i had tried to add custom button to the reuse_alv_grid_display.please send  the coding...
    REPORT  ZHAJI_SAMPLE.
    tables:lfa1.
    TYPE-POOLS : slis.
    SELECT-OPTIONS: lifnr FOR lfa1-lifnr.
    types:begin of fs,
          flag type c,
          lifnr type lfa1-lifnr,
          land1 type lfa1-land1,
          name1 type lfa1-name1,
          end of fs.
    data: itab type table of fs,
          wa type fs.
    data: fcat type slis_t_fieldcat_alv,
          fcat1 type slis_fieldcat_alv.
    data: rt_extab type slis_t_extab.
    *CONSTANTS : c_check(1) VALUE 'X'.
    select lifnr land1 name1 from lfa1 into corresponding FIELDS OF table
    itab where lifnr IN
    lifnr.
    perform sub.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
       I_CALLBACK_PROGRAM                = 'sy-repid'
       I_CALLBACK_PF_STATUS_SET           = 'PF'
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  =
      I_BACKGROUND_ID                   = ' '
    I_GRID_TITLE                      = 'vendor details'
      I_GRID_SETTINGS                   =
    IS_LAYOUT                         = LAYOUT
       IT_FIELDCAT                       = fcat
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
    IT_EVENTS                         = I_EVENT
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      I_HTML_HEIGHT_TOP                 =
      I_HTML_HEIGHT_END                 =
    IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        T_OUTTAB                          = itab
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    form sub.
    fcat1-fieldname = 'FLAG'.
    fcat1-tabname = 'TAB'.
    *fcat1-COL_POS = 1.
    fcat1-checkbox = 'X'.
    fcat1-edit         = 'X'.
    append fcat1 to fcat.
    CLEAR FCAT1.
    fcat1-fieldname = 'LIFNR'.
    fcat1-ref_tabname = 'LFA1'.
    fcat1-ref_fieldname = 'LIFNR'.
    FCAT1-outputlen = 10.
    append fcat1 to fcat.
    CLEAR FCAT1.
    fcat1-fieldname = 'NAME1'.
    fcat1-ref_tabname = 'LFA1'.
    fcat1-ref_fieldname = 'NAME1'.
    append fcat1 to fcat.
    CLEAR FCAT1.
    fcat1-fieldname = 'LAND1'.
    fcat1-ref_tabname = 'LFA1'.
    fcat1-ref_fieldname = 'LAND1'.
    append fcat1 to fcat.
    CLEAR FCAT1.
    endform.
    form PF USING rt_extab TYPE slis_t_extab.
    SET PF-STATUS 'ZHAJI_P1' .
    ENDFORM.
    just give the fine coding

  • I cannot find a print button on the toolbar and therefore cannot print sometimes from the web

    When I use internet explorer there is a "print" button on the tool bar, but there is not on Mozilla and cannot find anywhere to add it to the toolbar.

    hi, how are you?
    To show the print button in the tool bar, do this.
    go to View option, then toolbars, and then customise, and a popup window will appear, in that window look for a print button, (i think that is the last of the first row) click on it, and drag it to the toolbar
    Byee

  • How do I get Firefox to open in a new tab (instead of a new window) when I click on one of my buttons in my toolbar?

    When I click on one of my buttons in the toolbar, Firefox opens that button in a new window. I would like to be able to click on one of my buttons and Firefox open it in a new tab instead.
    == This happened ==
    Every time Firefox opened
    == When I attempt to click on a button

    Right click the FireFox button in your toolbar and look in the properties- middle tab...make sure that it only has "C:\Program Files\Mozilla Firefox\firefox.exe" with no other link added to the end. I had a similar problem this morning and found a website had attached it's link to the end so it would always pop up first and would only open a new tab.
    Hope that fixed it.

  • Lack of a print preview button on the toolbar

    Like several users, I miss the availability of a Print Preview button on the toolbar. The reason: Many, many, many web sites configure their web page outputs so that they ignore the size and limitations of the user's printer. For instance, a web page will ignore the page size defined by the user and will just send out data without any regard to what the user can and will be able to print. This results in print lines that are truncated; lines that are wrapped for one word or so; or other types of output that are, at best, difficult to read and interpret. I have tried to load several add-ons which include a Print Preview button, but receive a message that because I have the most up-to-date version of Firefox (5.0.1), I CANNOT USE THEM. HELP!!!!!
    Second issue: Size of the icons on the toolbars. I understand that this size is chosen to be the best for the AVERAGE user. But I find that I dislike having to place my nose on the screen in order to discern what icon I'm hovering over (Yes I'm an older individual, wear glasses and am somewhat near-sighted). It would be beneficial if the choice of toolbar icon size was larger than the default as well as the only current choice of smaller than the default.

    Is there not a 'Print Preview' and 'Print' command from the '''File''' menu?
    You can add an icon for Print commands by right clicking on one of the menu bars, select customize then drag and drop the icon where you want it.

  • Where did the little "flashing pumpkin" on the bottom toolbar come from and how can I get rid of it?

    On the bottom toolbar, right hand side, next to my incredimail icon, recently appeared a little "flashing pumpkin". I have not clicked on it because I don't know where it came from or why it is there and do not want to risk getting a virus. When you hover over it with the mouse, it says "Happy Halloween" in the dialog box that appears above it. If you right click on it, the only options are "Open Message" or "Leave it"?

    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    Use a compressed image type like PNG or JPG to save the screenshot.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also do a malware check with some malware scanning programs on the Windows computer.<br />
    You need to scan with all programs because each program detects different malware.<br />
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    *http://www.superantispyware.com/ - SuperAntispyware
    *http://www.microsoft.com/security/scanner/en-us/default.aspx - Microsoft Safety Scanner
    *http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    *http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    You can also do a check for a rootkit infection with TDSSKiller.
    *http://support.kaspersky.com/viruses/solutions?qid=208280684
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • Is there a way to add a font button to the toolbar in RH 10

    Is there a way to add a font button to the toolbar in RH 10

    Thanks Rick!  I made the request, and I'll keep my fingers crossed
    Date: Fri, 20 Sep 2013 07:56:45 -0700
    From: [email protected]
    To: [email protected]
    Subject: Is there a way to add a font button to the toolbar in RH 10
        Re: Is there a way to add a font button to the toolbar in RH 10
        created by Captiv8r in RoboHelp - View the full discussion
    Hello again
    The bottom line here is that it IS possible to add a button for this to the CHM toolbar. This is described at the link below:
    Click here to view
    The possibly bad news here is that RoboHelp doesn't lend itself to easily allowing you to do it. I tried a few times yesterday with no success. 
    If you are willing to make edits in RoboHelp, then step outside of RoboHelp and use the Microsoft HTML Help Workshop to compile your CHM, you might be able to achieve it.
    I would also heartily encourage you (and others) to file this as an enhancement request with Adobe.
    http://www.adobe.com/go/wish
    Cheers... Rick 
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5699471#5699471
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5699471#5699471
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5699471#5699471. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in RoboHelp by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • ALV Grid - Hiding the values of a feild and disabling checkboxs

    Hello, I have a report that requires the need to hide certain fields in an ALV report as well as checkbox in certain rows. So example I want to turn the ALV's output from .... PO Number PO Item 450000001 001 450000001 002 450000001 003 450000002 001

  • INT-0115: Null Poiner Exception. This is programming error. Please contact

    Hello, good day I am fulfilling one interface between maximo eam and sap r3 but to the quere to purchaise requisition of sap to maximo marks the following mistake, INT-0115: Null Poiner Exception. This is programming error. Please contact your System

  • Dmz dns query on asa 5540

    Hi Expert. How I can allow dmz zone server to resolve only dns query through nslookup on ASA 5540 ? What is the configuration required on ASA 5540 ? Thanks

  • Wrong Speed on Sky GO Stream and Poor Customer Ser...

    Hello, After starting with BT Option 1, I slowly starting exceeding my 10GB limit and after this happened 2 months running then I decided to upgrade to Option 3. This reason behind my exceeding of 10GB was that I was running Sky Go which was great fo

  • Multi-page layout

    Friends please help me with this. The information I need for a single record runs to 2 pages, which means I have a multi-page layout. I have pulled the repeating frame to the second page and created some fields with-in the frame in the second page. W