Right-Click Custom Menu

Good Day
Experts:
Well, I have revisited my old friend the Right-Click custom menu set-up.  After today I am at "witts" end andnot sure what to do.  Here is what I have going.
1)Form with multiple Tabs
2)2 of the Tabs need seperate right-click menus and the rest need nothing
I will attach the code at the end.  The toggling back and forth between Tabs produces the correct corresponding menu.  All is great.  However, as soon as I execute one of the menu selections, which happens to run correctly, the right-click
menus stop toggling correctly between the Tabs.  So, I put a breakpoint in the right-click event routine and it never gets in there. 
So, here is what I have in the right-click event routine.  Hopefully I am missing something that you all can see. 
Thanks Ed
Public Sub RightClickEvent(ByRef eventInfo As SAPbouiCOM.ContextMenuInfo, ByRef BubbleEvent As Boolean)
        Try
            If (eventInfo.BeforeAction = True) Then
                Select Case eventInfo.ItemUID
                    <b>Case "mtxOper"</b>
                        If g_B1Connection.Application.Menus.Exists("Update Material Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Update Material Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Add Material Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Add Material Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Delete Material Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Delete Material Row")
                        End If
                        Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
                        oCreationPackage = g_B1Connection.Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "Update Operation Row"
                        oCreationPackage.String = "Update Operation Row"
                        oCreationPackage.Position = 1
                        WOForm.Menu.AddEx(oCreationPackage)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "Add Operation Row"
                        oCreationPackage.String = "Add Operation Row"
                        oCreationPackage.Position = 2
                        WOForm.Menu.AddEx(oCreationPackage)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "Delete Operation Row"
                        oCreationPackage.String = "Delete Operation Row"
                        oCreationPackage.Position = 3
                        WOForm.Menu.AddEx(oCreationPackage)
                  <b>  Case "mtxMatl"</b>
                        Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
                        oCreationPackage = g_B1Connection.Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "Update Material Row"
                        oCreationPackage.String = "Update Material Row"
                        oCreationPackage.Position = 1
                        WOForm.Menu.AddEx(oCreationPackage)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "Add Material Row"
                        oCreationPackage.String = "Add Material Row"
                        oCreationPackage.Position = 2
                        WOForm.Menu.AddEx(oCreationPackage)
                        oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
                        oCreationPackage.UniqueID = "Delete Material Row"
                        oCreationPackage.String = "Delete Material Row"
                        oCreationPackage.Position = 3
                        WOForm.Menu.AddEx(oCreationPackage)
                    <b>Case Else</b>
                        If g_B1Connection.Application.Menus.Exists("Update Material Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Update Material Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Add Material Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Add Material Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Delete Material Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Delete Material Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Update Operation Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Update Operation Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Add Operation Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Add Operation Row")
                        End If
                        If g_B1Connection.Application.Menus.Exists("Delete Operation Row") Then
                            g_B1Connection.Application.Menus.RemoveEx("Delete Operation Row")
                        End If
                End Select
            Else
                Select Case eventInfo.ItemUID
                    Case "mtxOper"
                        g_B1Connection.Application.Menus.RemoveEx("Update Operation Row")
                        g_B1Connection.Application.Menus.RemoveEx("Add Operation Row")
                        g_B1Connection.Application.Menus.RemoveEx("Delete Operation Row")
                    Case "mtxMatl"
                        g_B1Connection.Application.Menus.RemoveEx("Update Material Row")
                        g_B1Connection.Application.Menus.RemoveEx("Add Material Row")
                        g_B1Connection.Application.Menus.RemoveEx("Delete Material Row")
                End Select
            End If
        Catch ex As Exception
            MessageBox.Show(ex.Message)
        End Try
    End Sub

Further testing showed that if I cooment out the following line from behind the right-click function the menu stays in order. 
Dim WOMaintOperForm As New LBSI_WOMaintOper(WO, Line, Code, Mode)
I am firing off a form from behind the right click.  For some reason I never return back to the False part of the Right-Click event when I run this line of code.
Thanks,
EJD

Similar Messages

  • Is it possible to add a button to the right-click context menu for a user in Outlook 2010 using VBA?

    I've tried many things and read up quite a bit but I cannot figure this out.
    I cannot create an add-in so I have to use VBA.
    I want to add a a button to the right-click context menu when I right-click on a user. Is this possible?

    Hello,
    Yes, it is possible to customize the context menu in Outlook. See
    Customizing Context Menus in Office 2010 for more information.
    But VBA doesn't allow to customize the Fluent UI in Outlook, you need to develop an add-in instead.

  • Right click context menu is not working in flash player 10 and above

    In right click custom context menu i have create like "A" if i click "A" i have attached one movie clip in that movie clip right click, i have custom context menu like "Remove A" this is working fine in flash player 9 and below. But flash player 10 and above fisrt "A" is working fine but in that movieclip clip right click "Remove A" is not working Please guide me regarding this issue.
    Thanks in Advance
    Surendran S

    The problem is that Google has an onmousedown attribute added to the links that modify a link if you click or right-click a result link to make the link point to a safe browsing check on the Google server.<br />
    You can see that if you hover a link and you will notice that after you have (right) click a link the the URL changes to www.google.com/url?xxxxx.
    You can use this bookmarklet to remove the onmousedown attributes.
    <pre><nowiki>javascript:(function(){var e=document.querySelectorAll('*[id="search"] a[onmousedown]'),E,i;for(i=0;E=e[i];i++){E.removeAttribute('onmousedown')}})()</nowiki></pre>

  • PowerPoint 2010: deactivate/disable right click context menu

    Hi,
    I am looking for a way to deactivate/disable the right click context menu in PowerPoint 2010/365.
    For the editing font menu it works with the registry entry
    Go to: HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Common\Toolbars\PowerPoint Create a Dword AllowMenuFloaties and set the value to zero. Set to 1 to enable again.
    NOTE This will kill ALL floatie Menus not just the one you mention.
    Does anybody know, how it works for the main right click context menu?

    Hi,
    Hi,
    We can custom the existing right-click context menu in PowerPoint 2010 via VBA.
    A similar issue is addressed here, we can learn from this experience  :
    http://social.msdn.microsoft.com/Forums/en-US/f8c7ee04-2a08-4300-9a73-48ccf084723d/how-to-remove-munu-item-from-popup-menu?forum=worddev
    http://social.msdn.microsoft.com/Forums/office/en-US/c1eb22ba-6ca8-4c21-8100-62185355aa53/customize-rightclick-context-menu-in-powerpoint-2010?forum=officegeneral
    There is an example of Customizing Context Menus in All Versions of Microsoft Excel
    http://msdn.microsoft.com/en-us/library/gg469862(v=office.14).aspx
    If you need detail help, please post it in MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc

  • Right-click (custom context) fails in Flash Player 10.1

    With the release of Flash player 10.1 the right-click (custom context menu) functionality in the software simulations my company builds no longer functions properly.  All files are published at Flash 8 in AS 2.0.  After completing a right-click step the browser crashes (IE 8, Chrome, FF, and Safari).  Anyone having similar problems?
    We had issues with our right-click files when flash player 9 was released and implemented a solution (attached the custom menu to a movieclip vs. a button instance) from Adobe to correct the error...now that isn't working any longer.

    Thanks for the quick response! here is the file list (all file versions are 10.1.53.64):
    C:\Windows\SysWOW64\Macromed\Flash:
    Flash10h.ocx
    FlashAuthor.cfg
    FlashInstall.log
    flashplayer.xpt
    FlashUtil10h_ActiveX.dll
    FlashUtil10h_ActiveX.exe
    install.log
    NPSWF32.dll
    NPSWF32_FlashUtil.exe
    uninstall_plugin.exe
    C:\Windows\SysWOW64\Macromed\Flash\FlashPlayerTrust:
    Adobe Search For Help.cfg
    AdobeFireworksCS5.cfg
    AdobeXMPFileInfo.cfg
    AdobeXMPFileInfoCS5.cfg
    kuler.cfg
    ServiceManager.cfg
    I also made sure all the addson are enabled. Still doesn't work.
    disabled hardware acceleration.Still doesn't work.
    the last resort is will try to update the GPU driver - as ʇɐb ɹəuəllıʍ said.
    I will keep you posted either way. thanks

  • How do I fix the right-click context menu; it has blank entries and shows no selectable options?

    recently I have noticed that my right-click context menu looks like it has no entries. It shows up on a right-click, but the whole menu is blank. On further investigation there are scroll buttons on the top and bottom of the menu and if I hover over the up buttom eventually the normal context commands scroll down from above. I noticed this first a few days ago, shortly after the download of 3.6.13. Today I also noticed that some of my menu bars were showing a similar issue with blank entries in the menus. In one case the menu also didn't register where the mouse was, highlighting a command several steps further up.
    Is this something to do with the new Mozilla or something else? I only run a couple of addons, Ad Block Plus and Tab Mix Plus. Can try to capture a screen shot of the issue, but difficult since the menu dissapears when I try to do a screen grab!
    All help is much appreciated.

    Hi, thanks for the quick response!
    While trying to find info on how to fix this I looked up some context menu addons for FF and tried one. It didn't work so I uninstalled it and after that everything was back to normal. Odd, but there you have it. I still don't know what went wrong in the first place but for the moment it appears to have cleared up.
    Next time though I will try loading into Safe Mode if I find any issues (I forgot there was one!).
    Thanks for getting back to me again.
    GC

  • Is there any way to prevent the right click context menu from combining Stop/Reload?

    Is there any way (about:config tweak, or something) to prevent the right click context menu from combining Stop/Reload?
    Screenshot of what I'm talking about: http://picsend.net/images/873089StupidReloadSto.png

    I did try the add-on ''Menu Editor'' https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ but even when I separate the navigation reload and stop icons and explicitly have both stop and reload set to be visible on the right click context menu I only get the one option showing.
    Whilst there may be some way of changing this I do not know how to and I do not really see any use case for making such a change. Only one option of the choice: stop or reload, is available at any instance in time, but that is the option you are able to use, the other option is not active and so is not displayed.

  • "Save link as" in Right-click Context menu is not working properly.

    Firefox 17: In a Google search, when I right click on a .pdf link, the popup window automatically gives a "url" filename and "Firefox Document" as filetype. Previously, the filename would be whatever it was on the website (ie. "filename.pdf") and the filetype would be "Adobe Acrobat Document".
    I know this problem has less to do with Firefox and more to do with JavaScript, because the problem disappears if you disable JavaScript (Tools -- Options -- Content -- uncheck "Enable JavaScript"). What's happening is that JavaScript is somehow altering the link from a purely .pdf link to something else -- perhaps encasing the link inside a set of commands, and the computer is trying to save the command string instead of recognizing the link for what it is. When JavaScript is disabled in Google searches, the highlighted "[PDF]" link no longer appears in front of the link itself, and the "Save link as" function on the right-click works properly.
    Any JavaScript junkies want to try their hand at creating a workaround? One that ensures that the reference created by the right-click context menu matches exactly what the filename is for the website?

    The problem is that Google has an onmousedown attribute added to the links that modify a link if you click or right-click a result link to make the link point to a safe browsing check on the Google server.<br />
    You can see that if you hover a link and you will notice that after you have (right) click a link the the URL changes to www.google.com/url?xxxxx.
    You can use this bookmarklet to remove the onmousedown attributes.
    <pre><nowiki>javascript:(function(){var e=document.querySelectorAll('*[id="search"] a[onmousedown]'),E,i;for(i=0;E=e[i];i++){E.removeAttribute('onmousedown')}})()</nowiki></pre>

  • Update for RDP 8.1 Windows 7 SP1 changed explorer right click context menu

    I have a 4 pcs and 3 nas drive on my network.  previous to the update I could view my pcs and nas drives in explorers right pane left click one and access the folders on it.  since the update I can no longer do this because "remotedesktopconnection"
    has been added as the default (previously it was "open") to the right click context menu.  can someone help me change this back so when I right click a network computer icon in explorer I only see:
    open                                                                   
    AND NOT                              remotedesktop
    open in a new window                                                                                       open
    create shortcut                                                                                                 open
    in a new window
                                                                                                                           create
    shortcut
    the exact update that makes the change is: kb2592687

    Hi
    Theoretically it could be done by modify registry. For example you could
    modify right click menu on .exe file by changing values under
    HKEY_CLASSES_ROOT\exefile\shellex\
    However there are some problems that I cannot define that what kind of “file”
    the network computer is.
    And I found no article specific to this.
    If you really need to restore your context menu and also need this update, I
    suggest you uninstall this update first. Then back up your registry, install it
    again. This time using process monitor you could record all registry modifications during
    this update installation. It might take lots of work.
    I tried to do that for you, unfortunately this update has been deployed in our environment which cannot be uninstalled from update history.
    For more information about process monitor
    https://technet.microsoft.com/en-us/library/bb896645.aspx?f=255&MSPPError=-2147217396
    Regards
    D. Wu
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Right click context menu does not appear only for Java 1.7, AWT TextField

    I have been debugging some issues that an application has been having with Java 1.7 versus older versions. A new problem I have encountered is that the right click context menu does not function in any TextField. It works fine when running/compiling it with any previous version of Java. I have tried coding a simple test with a Frame, Panel and TextField to see if it might be something else in the more complex application that was causing it, but the simple test class has the same problem.
    I have searched for other people having the same issue, but I have not found anything comparable. This seems like a huge change from one version to the next and I am surprised that I am not finding this mentioned anywhere else. Can someone point me to anything that discusses this issue that I am having? Does 1.7 require I implement my own context menu? I realize AWT is old technology, but this is an old, fairly complex application that doesn't use swing, and that is not going to change at this point.
    My simple test:
    import java.awt.*; 
    import java.awt.event.*; 
    import java.util.*; 
    class testF3 extends Panel 
      public static void main(String args[]) 
        Frame f = new Frame(); 
        Panel p = new Panel(); 
        f.setLayout(new BorderLayout()); 
        f.add("North", p); 
        TextField tf1 = new TextField("", 20); 
        p.add(tf1); 
        Dimension medm = f.getSize(); 
        medm.height = 100; 
        medm.width = 200; 
        f.setSize(medm); 
        f.setVisible(true); 

    In the past few days since upgrading to 4.0.4, the entire right-click context menu for links is gone and replaced with one item: "Copy Link" The "Open In New Tab" item, along with some other context items, is no longer there.
    That's actually a problem with your particular installation of Safari, b. I've got all the contextual menu entries with my 4.0.4.
    I helped fix one of these recently here at the forum. Try the procedure from the following post (it got back Tho's missing contextual menu entries):
    http://discussions.apple.com/thread.jspa?messageID=10598385&#10598385

  • Reader 9.1.3 Right click context menu

    Good Morning,
    We have deployed the Acrobat Reader 9.1.3 MSP Patch on our network to upgrade to the latest version.  However, after the upgrade we are missing some functionality.  In previous versions we were able to right click on a PDF(s) and have the option to "Print".  With the new version those context menus seem to be missing.  Was this a change done by the product?  If so, anyone know why? And if not, does anyone know what I can do about re-adding this functionality?
    Thank you for your time on this matter,

    I put the following into a .reg file and this seems to work. Anything you see that could be wrong?  It does bring back the "Print" option under the right click context menu.
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.pdf]
    @="AcroExch.Document"
    "Content Type"="application/pdf"
    [HKEY_CLASSES_ROOT\.pdf\OpenWithList]
    @=""
    [HKEY_CLASSES_ROOT\.pdf\OpenWithList\AcroRd32.exe]
    @=""
    [HKEY_CLASSES_ROOT\.pdf\PersistentHandler]
    @="{F6594A6D-D57F-4EFD-B2C3-DCD9779E382E}"
    [HKEY_CLASSES_ROOT\.pdf\ShellEx]
    [HKEY_CLASSES_ROOT\.pdf\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}]
    @="{49400A7C-81A8-4F52-8CCE-D54739EE87EC}"
    [HKEY_CLASSES_ROOT\AcroExch.Document]
    "BrowseInPlace"="1"
    "EditFlags"=hex:00,00,01,00
    @="Adobe Acrobat Document"
    [HKEY_CLASSES_ROOT\AcroExch.Document\CLSID]
    @="{B801CA65-A1FC-11D0-85AD-444553540000}"
    [HKEY_CLASSES_ROOT\AcroExch.Document\CurVer]
    @="AcroExch.Document.7"
    [HKEY_CLASSES_ROOT\AcroExch.Document\Shell]
    [HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open]
    [HKEY_CLASSES_ROOT\AcroExch.Document\Shell\Open\Command]
    @="\"C:\\Program Files\\Adobe\\Reader 9.0\\Reader\\AcroRd32.exe\" \"%1\""

  • Right-Click Context Menu's Acrobat X Pro Missing

    Hello.  I have a user of Acrobat X Pro on Windows XP 32-bit system.  When they right-click, the context menu's are not there.  These menu's exist in my other 2 users Acrobat 9 right-click menu's.  Please help me to resolve getting the menu items to show up.  I have tried running regsvr to reload the ContextMenu.dll file and it succeeded but still nothing when right clicking.

    Via Hit and Miss, I discovered that the "blanks" in my right click context menu are actually the command buttons, just missing the text.  I tried everything, including the contextmenu.dll approaches but nothing worked.  I then highlighted a few PDF's, hit the blank bar in the context menu, and voila - Acrobat opened and put me into the "combine files" window.    Even right-clicking on a single JPG and then hitting the blank bar opens up the "add files into a PDF" window.
    Not a perfect fix but at least it gives me what I want!!
    nd M

  • Disable Right Click Context Menu in XP "OPEN WITH ADOBE READER 8"

    How can I eliminate the right click context menu "OPEN WITH ADOBE READER 8" in Windows XP?
    I have general familiarity with removing context menus. I see no option for this one in msconfig, or various context menu editors. I am unable to find a setting in Adobe Reader 8. If you know where the setting is, or have solved this problem, please let me know.
    Thanks,
    Joey

    That would be the device Metadata from the print driver vendor. It's part of the Device Stage feature mainly for client OS.
    Here is some MSDN documentation on the feature.
    http://windows.microsoft.com/en-us/windows7/products/features/device-management
    If this is a print server, use the tools include by the print team if you are performing any management on the server.
    Printmanagement.msc
    The Devices UI is really about devices it's not designed for print management, the spooler team had minimal input on the UI design.
    Alan Morris formerly with Windows Printing Team

  • How do I modify the file right-click context menu to add "creat shortcut"?

    I have just chosen Mozilla as my browser and want to add shortcuts to files by using the right-click context menu, but there is no "create shortcut" choice displayed.

    Could you describe where you're clicking, exactly? Are you clicking on a web page, or clicking a link on a web page? If you are using Firefox to browse files on your hard drive, you're probably better off using Windows Explorer to do that since Firefox doesn't have all the functions of Windows.

  • The Right click context menu, and menu butons are all yellow?

    The right click context menu, and the Drop down menus for the tool bar, all have Yellow Text.
    Everything else is working normally, and the Yellow text is un related to windows itself, as Windows still has the standard coloring for the menus and Right click context. im stumped.
    Adblock Plus 2.0.3
    Easy YouTube Video Downloader 5.9
    EPUB Reader 1.4.1.1
    FoxTab 1.4.4
    Ghostery 2.7.2
    IMVU Toolbar 3.10.0.1
    .Net Framework
    Personas 1.6.2 [have had same persona for ages so its not that]
    Roomy Bookmarks 1.3.3
    Smoothwheel 0.45.6.20100202.1
    Tab scope 1.1.4
    Turn off the lights 2.0.0.71
    Yontoo Layers 1.20.00
    i have latest version of firefox. 11
    no virus detected with Malwarbytes, or Avast.
    setting check through windows shows no carry over from a botched windows theme setting.
    its cosmetic issue mostly, not harmful.

    Hmmm, that shouldn't happen. It's difficult to change the text colors in the interface without installing a theme or an add-on that lets you tweak the menus.
    Can you try switching between the default theme and your current theme?
    Do any of those extensions let you change display settings?

Maybe you are looking for

  • B2B vs general submission to Apple

    I have a single edition for a product directed to construction engineers. It's a lot of technical information and not something most people would be interested in. It uses slides shows, a movie and one MSO. Apple rejected it saying to enough interact

  • EPMA - Interface Tables

    I have a profile set to 'Replace' and when I use the EPMA batch client to load from the interface tables like this, Execute Import Parameters(importtype, profilename, filename, waitforcompletion) Values('InterfaceTables', 'Accounts', '', 'true'); ...

  • Strange sounds from speaker...

    I have been noticing when I play music, whether it's from my headphones or from the speaker, occasionally my music sounds like a radio station that is out of range, if you know what I mean. It's that mix of music and white noise put together, and it

  • Catupgrd script for upgraging to 10.2.0.3

    Hello - Everytime I have run the catupgrd script (migrating from 8i to 10g, or applying the 10.2.0.3 patch set) it has never run more than 25 minutes. However, I just recently upgraded a database where it took an hour and eighteen minutes to run. Has

  • Is login info in Console?

    I'm a sort of mid level mac user and I'm trying to learn more. I've recently become the administrator, along with a couple of other people, for three macs in a small group of users. The macs run v.10.6.4 and have a user account with standard privileg