Adding a button to the toolbar

I am having some trouble with a custom toolbar button. I add the button in a Reader plug-in with no problems:
> //Create a AVIcon object
> AVIcon myIcon = (AVCursor)LoadBitmap(gHINSTANCE, MAKEINTRESOURCE(Save_BMP));
> //Create a new button
> AVToolButton MyButton = AVToolButtonNew (ASAtomFromString("Test"), myIcon, FALSE, FALSE);
AVToolButtonSetHelpText(MyButton, "Test tooltip");
> //Retrieve the File toolbar
> const char * toolbarName= "File";
> AVToolBar ToolBar = AVAppGetToolBarByName(toolbarName);
> //Attach the button
> AVToolBarAddButton(ToolBar, MyButton, FALSE, NULL);
However, if a user has customized the toolbar eg. with e-mail and search buttons, my custom button only shows up in the first instance of Reader. If the user opens a second PDF document, the button is not visible in the new Reader window.
I have tried removing the button and adding it again, but this results in two buttons in the first instance and a single button in the second instance.
Should I add the button in another way to solve this? Using a javascript file perhaps? I have experimented with a trusted function in a .js file, but I could not figure it out - nor find a fitting example.

Hi,
1. create GUI status with "Status" name and "Short text"
2. Now a screen will appear with the following,
   a. Menu Bar
   b. Application tool bar
   c. Function keys
3. Click the down arrow near the application toolbar
4. Enter the function code like SAVE, EXIT, etc., You 
   can also give ur own meaningful naming convention .
   For example ( ZTEST)
5. Now press enter, it will ask for "Static text" or "Dynamic Text". Choose Static text and press enter
6. Now it will ask for function text and Icon name. Specify some function text ( what it does ) and Icon name u want to attach.
7. Press enter. It will ask for function keys. Specify a function key and press enter.
8. Now u can handle this function code (ZTEST) either in PBO/PAI like IF FUNCTION = ZTEST ...ENDIF
Note:
Don't forget to set the GUI status u have created in PBO event.
Example code to set PF status.
PROCESS BEFORE OUTPUT.
  MODULE liste_initialisieren.
  MODULE setstatus_0100.
   LOOP AT extract WITH CONTROL
   tctrl_ztufi_league CURSOR nextline.
    MODULE liste_show_liste.
  ENDLOOP.
In the above MODULE setstatus_0100 do the following,
SET PF-STATUS 'ZGUI'. ( The GUI status u have created).
I hope this helps you.
Regs,
venkat

Similar Messages

  • How to add a button to the toolbar of standard transaction

    hi friends
    currently i am working in IS-OIL(DS)-TSW module, in which we need to add a button to the toolbar of standard transaction(O4nm)
    can anybody help me how to proceed with this
    with regards
    s.janagar

    Hi,
    To be able to add a button to the toolbar of a standard transaction, you can use GuiXT which is a bundled solution within SAP R/3 or Netweaver.  With GuiXT, you can create your own pushbuttons within an R/3 screen or within the toolbar. You can make both the menu functions and the navigation to other transactions directly accessible with your own pushbuttons along with a new icon that you wanted to assign to the pushbuttons.
    Also, you can customize the pushbutton's size effortlessly.  And in your situation of adding it to the toolbar, GuiXT can help to set your pushbuttons automatically to fit onto the toolbar with its designer tool.
    For more information about front end changes, you can view more information about GuiXT at http://www.guixt.com/site/solutions.php
    Thank you and hope this helps!

  • The home button in the toolbar doesn't work anymore. It takes me to a search page not my homepage

    instead of opening new tabs I do a lot of surfing from one tab. Before when I wanted to get back to my homepage I would click the Home button in the toolbar and it would take me back to my homepage. A nice feature. But lately when I click the home button it takes me to a search window and I have to type in yahoo and then click on yahoo login.
    Anyone know how to fix this?

    ... and 99% of the time the site you want is at the top of results.
    or hit down arrow to get to it from history...
    Believe it or not but most people use the url bar for searching.
    .... it should never had been that way by default(.com)

  • 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.

  • When I try to forward a PDF file by using the email button on the toolbar, it won't send.

    I cannot always forward a PDF using the email button on the toolbar.  For example, I get a report forwarded to me as a link.  When I open the link, the document opens as a PDF.  I use the email button on the toolbar to forward the document as an attachment.  Outlook pops up as a new message with the attachment.  I finish writing my email and hit the "send" button and I get an error saying the doucment couldn't be sent.  If I close the email and save it as a draft, I can open the draft copy and it will send.  Is there someway to fix this so I can eliminate these extra steps?  This has happened on a computer with Adobe Reader as well as a computer with Adobe Acrobate 9 Standard. 

    teresah7680 wrote:
    the doucment couldn't be sent.
    Is that the exact message that Outlooks gives you?
    Anyway, why don't you just forward the original link to the document, instead of the PDF itself?

  • 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.

  • How to set luma key in FCX 10.1.2?  Luma key adjustments do not open when selecting the  Effects button on the toolbar.

    Using FCPX 10.1.2 and trying to adjust a luma key, when selecting the Effects button on the Toolbar, the adjustments do not appear.  Any suggestions?

    TThe effects controls should be in the inspector. Select the clip in the timeline and post a screen shot of the video inspector.

  • Does Pages 2 have a save button in the toolbar?

    Anyone know if Pages 2.0 has a save button in the toolbar? Also, is there a button to show invisibles instead of a drop down menu? This is one of the most missed features. I couldn't tell from the images.
    iBook G3 800MHz Mac OS X (10.3.9)
    iBook G3 800MHz Mac OS X (10.3.9)

    Just out of curiosity, could you describe how you use the Save button in AppleWorks?
    Do you let go of the keyboard, move your hand to the mouse, move the cursor to the button and click it and then move the hand back to the keyboard, or do you usually have your hand on the mouse anyhow, so you just have to move the cursor and click? Or do you have some other trick?
    I'm honestly curious. The first thing I do in almost any application is to turn off the toolbars and use the shortcuts instead. (⌘+S for save and ⇧⌘I for show invisibles, but you probably knew that already.)

  • 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.

  • Adding a Button to the Sales Order screen

    Good Day
    Experts:
    I have added a button to the SalesOrder screen with help from a previous post here on the forum.  The button was lined up with the others that were already exisitng on the screen.  Recently, I have encountered a problem with it.  When the SalesOrder screen is run on a different machine,  the button is almost not visible.  It appears there is some kind of issue with the screen resolution just for this button. 
    Do I have to do something special with this button when it is shown on the screen to get it to remain in line with the existing buttons?
    Thanks,
    EJD

    Hi Ed
    Are you setting the button in relation to the surrounding existing objects?  Like for instance ...
            Dim oButton As SAPbouiCOM.Item = oForm.Items.Item("2").Specific 'Cancel button
            Dim oNewButton As SAPbouiCOM.Button
            Dim oNewItem As SAPbouiCOM.Item = oForm.Items.Item("Test") 'your new button or control
            With oNewItem
                .AffectsFormMode = True
                .Left = oButton .Left  + oButton.Width ' notice how button is positioned based on  existing one
                .Top = oButton .Top
                .Width = oButton.Width
                .Height = oButton.Height
                .FromPane = oButton.FromPane
                .ToPane = oButton.ToPane
                .TextStyle = intTextStyle
                oNewButton = .Specific
            End With
            With oNewButton
                .Caption = strCaption
            End With
    Message was edited by:
            Neftali Figueroa
    Message was edited by:
            Neftali Figueroa

  • I have clicked on hide inside bookmarks button then bookmarks button in the toolbar disappeared , How can I get it back ?

    I have clicked on hide inside bookmarks button then bookmarks button in the toolbar disappeared , How can I get it back ?

    Hiding the Bookmarks menu item is not a default feature in Firefox.
    Do you have a Delicious extension installed? <br />
    If so, look for that option in that extensions options. <br />
    If not, look at the extension s that you ''do'' have installed for that preference.

  • Adding custom buttons to the Rich Text Editor in CQ

    Hi,
    I have added custom buttons to the rich text editor in order to allow our editors to add specific content, such as popovers, custom videos and other data necessary data.
    I have successfully modifed the Rich Text editor so, that it includes the custom buttons in the actions panel.
    I have also managed to make the buttons work and include the data where necessary, when user highlights the text and clicks on a certain button.
    The last bit I am struggling with, is the visual feedback we give to the users when this text has associated action with it.
    E.g. when we select this text and make it bold when we click on the word B the button B becomes highlighted in the actions panel, later when we continue typing our text and click again on "bold" the letter B becomes highlighted again.
    Is there any button related callback/method I could overwrite to add this functionality and make my button highlighted ?
    Thanks,
    Puzanovs

    After lot's of thinking found a solution....
    Essentially the first step is to extend the CQ.form.rte.plugins.Plugin in your custom button.
    Then during the UI initialisation we create our "custom"
    var pressButton = new ui.TbElement("press-button", this, true,this.getTooltip("press-button")); // Essential extend of the button
    setInterval(function() {
                     if(window.jQuery) {
                         window.jQuery(document).ready(function () {
                             window.jQuery(".x-edit-glossary-insert").css({width:45,"background-image":"none"}); // Ignore the background
                             window.jQuery(".x-edit-glossary-insert").text("Press Button"); // Set the name
                            $(document).on({
                                mouseenter: function(){
                                  window.jQuery(".x-edit-glossary-insert").html("<b>Press Button</b>"); // Set the name bold                        
                                mouseleave: function(){                       
                               window.jQuery(".x-edit-glossary-insert").html("Press Button"); // Set the name normal
                             }}, '.press-button');
                 }, 100);
    tbGenerator.addElement("press-button", plg.Plugin.SORT_LISTS, pressButton, 10); // element is inserted
    Every time the element is inserted I add the following html
    <span class="press-button">Test peter</span>
    Now, every time in the editor, the content editor mouse overs the custom button it is higlighted in the RTE))

  • Is it possible to add a button to the toolbar?

    I want to add a "Feedback" button to the toolbar so the users can provide info to me on issues related to the content or new content they need to add.  Since Microsoft HTML output does not have a skin related to there does not seem to be a way to add this...

    Maybe the window you are using was not created with the Microsoft HTML Help simgle source layout as the default layout. Prior to RoboHelp 10 you had to have the default SSL set to the SSL you wanted to use your window for. The window should look like this:
    If you want to read up on why the default SSL is important, you can do here: http://www.cmcandrew.com/robocolumn/archives/407

  • 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!

  • Instead of hitting the "back" button on the toolbar, where is the drop down to go back 2-3 pages?

    I used to be able to go back a few pages at a time until the latest upgrade. Now, if I click the "back" button on the toolbar I can only go back 1 page at a time. This doesn't always work and I have to go back to my original starting point which could be 10-15 click back ... is there anyway to get the option to go back multiple pages like before or can I just not use certain web pages anymore?
    thank you!

    Use this to open the tab history list:
    * Right click on the Back or Forward button
    * Hold down the left mouse button on the enabled Back or Forward button until the list opens
    You can look at this extension:
    * Backward Forward History Dropdown: https://addons.mozilla.org/firefox/addon/backforedrop/

Maybe you are looking for