Disabling Menu Items

I can only seem to disable entire menus, not just their menu items. im using menuItem.disable() but it doesnt seem to affect it. ive tried this.validate() after calling disable() but that has no affect either. any suggestion?
thanks,
-t0bes

Try this:
menuItem.setEnabled(false);The API has all the info you'll need when you're looking for something like this. Just look up the class and search for the method name
http://java.sun.com/j2se/1.4/docs/api/index.html

Similar Messages

  • How to hide/disable menu items using Javascript in Acrobat 9 pro or later

    We just wanted to know on how to hide/disable menu items for e.g. 'Open' menu item under 'File' menu in Acrobat 9 or later on Mac using Javascript. It would be useful if you could provide if any other option is in place already.

    Not sure it will work, but you can try using the app.hideMenuItem() method. See reference here.

  • How do i disable menu items in Help manu, Photoshop cs6?

    How do i disable menu items in Help manu, Photoshop cs6?
    I packaged Photoshop cs6  using AAMEE CS6.
    I need to some menu items to disable.
    can any one please tell the process of doing , or which registries or files need to edit.
    Appreciate the immediate response.
    thanks in advance.

    Hello8
    Given the fact that you speak about AAMEE, it's not clear if you search for an automated and remote way to do it on multiple machines or not.
    (and therefore if this thread should be moved to the relevant forum, http://forums.adobe.com/community/download_install_setup/creative_suite_enterprise_deploym ent )
    To disable menu items, simply go to Edit>Menus and click on the eyeball next to the menus you do not want.
    It is then possible to save it in a workspace that by default will be located there: Documents and Settings/[user name]/Application Data/Adobe/Adobe Photoshop CS6/Adobe Photoshop CS5 Settings/Workspaces (Modified)
    I'm not sure if Photoshop will start if the default workspaces are removed, as there is an option to restore them in the preferences.
    Also, this is not customer support, but a forum fielded by volunteers that answer when they can, so inviting for an"immediate response" has no bearing; and might even have the opposite effect, but thanks for doing it in a polite and non too demanding way!

  • Using XMLLIST - Enable/Disable Menu Items

    I am using XMLList for creating menu items.
    I want to enable / disable menu items based on the permissions to the user.
    Below is the code snippet:
    <fx:XMLList  id="newData">
                                  <menuitem id="item1" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')}" />
                                  <menuitem id="item2" label="{resourceManager.getString('taskmgmt', 'taskmgmt.label.projectFromTemplate')}" enabled="false"/>
                        </fx:XMLList>
    private function ItemClickHandler(event:MenuEvent):void
         if(PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                           ProjectAssignmentModel.projectAssignmentFlag=false;
                                                           if(event.item.@label == resourceManager.getString('taskmgmt', 'taskmgmt.label.newProject')){
                                                                     clearModel();
                                                                     dispatchEvent(new SwitchViewEvent(SwitchViewEvent.SWITCH_VIEW_EVENT,false));
    protected function newMenuButton_clickHandler(event:MouseEvent):void
                                            if(! PermissionManager.isAddPermitted("WTM_PROJECT_PLANNING")){
                                                      newData.item1.enabled = false;
                                            else
                                                      menuList.dataProvider = newData;
                                                      menuList.show(event.stageX + 5 , event.stageY + 5);
                                                      mode = CREATE;
    Based on the permission, I want to dynamically enable / disable the "New Project" button.
    Can someone provide information how to achieve this ?
    Further update on this, it is giving the following error while running of the application:
    "TypeError: Error #1089: assignment to list with more than one item is not supported"

    Resolved by using the correct Data Provider and iterating through the list

  • How to disable menu items through c# in adobe x standard. I didn't find the required APIs.

    Hi
    We are working on a desktop application on C# which uses Adobe Express 5.0. to view the PDF files. Recently we had an issue reported that PDFs created in Adobe 9 are not opening up. So we decided to upgrade to Acrobat Adobe X Standard. Now the issue is that I have to suppress controls (tool bars(or Panels), menu items) for which I'm using the below code which worked in express 5.0 but not on Adobe X. Also I want to view the toolbar by default instead of the translucent menu at the bottom of the page.
    Acrobat.CAcroApp.ToolButtonRemove("SaveFileAs");
    Acrobat.CAcroApp.MenuItemRemove("Quit");
    Please help.
    Thanks,
    vinay

    Hi
    We used javascript to find out the names of the menu items that are present in the Adobe 9.0 Std. I presume that it would work even for Adobe 10.o as well. After that in the .NET C# code we have used App.RemoveMenutItem ("<<MenuItemName>>") to disable all the menu items that we dont want You can search for javascript references for Acrobat and you would find many.
    Also I've figured out another way where you remove the .api files from your plugins folder, however I'm not sure if it would create any further problems. This is route is not taken, atleast for now.
    Please post here the route taken by you.
    Thanks.

  • How to Disable Menu item in Oracle Applications

    Hi,
    How can I disable a Menu (Actions->user defined menu) Item in Oracle applications by using forms personalization.
    Our requirement is to display a message on click of a standard menu using form personalization and it should retain the seeded functionality.
    Thanks
    Prasanna
    Edited by: user13029651 on Jul 30, 2010 6:47 PM

    As an Oracle Applications Developer, your best friends are going to be the following docuements:
    <ul><li>Oracle Applications Developer's Guide </li>
    <li>Oracle Applications User Interface Standards for Forms-Based Products</li>
    <li>Oracle Application Framework Personalization Guide</li></UL>
    These and all of the other related EBS documents can be found in the Oracle Applications (EBS) Documentation Home and don't forget the Oracle eTRM Technical Reference, but you will need an Oracle Support contract to access this site.
    When you can't find your answer in these document sources, you can always ask for help in the E-Business Suite group of forums.
    Craig...

  • Why does LV(8.0.1) still track the keyboard shortcuts of disabled menu items?

    Hello all,
    when I disable a (super-) menu item, the submenu-items are grayed out as expected. But they still accept their keyboard- shortcuts. Is this a bug in LV? If I explicitly disable the submenu- items, all works fine, but the simple method would be nicer and comprehensibly.
    I made a VI to illustrate.
    Greets, Dave
    Message Edited by daveTW on 05-11-2006 01:56 PM
    Greets, Dave
    Attachments:
    Menu with shortcuts.zip ‏37 KB

    Hi Dave,
    it seems a bit strange but at the end it is a absolutely correct behaviour. If you deactivate a menu item than all sub-menu items are deactivated in the menu bar. But that is only a feature of the menu bar. To disable the short cut you have to deactivate the sub-menu item itself. In you zip-file the <STRG - C> is deactivated but the <STRG - V> still works. That depends on the settings in your test3.vi where you defined the items to be disabled. If you add "Paste" to the array of items or if you disable all items then the shortcuts will be disabled as well.
    Best regards,
    Carsten Sprung
    Application Engineer
    National Instruments Germany

  • Adobe interactive form : Disabled menu item

    Hi experts,
    we recenlty satred working in Adobe iteractive form in SAP. and we are facing folllowing issues
    1)submenu item is disable (submenu item from "Layout" and "Table" is not enable)
    any solution?

    Hi Sandy,
    Thanks for Replying
    yes i am in display mode but same thing happens when i am in edit mode..
    sorry i can not go in edit mode right now as another developer is working on it.
    SAP Net weaver version - 7.31 with EHP 6.0
    ALD version :  ES2 9.0
    See below Screenshot from other adobe form
    Message was edited by: Zubin ..

  • Cancel Menu item is alwasys disabled in some A/P windows

    The 'Cancel' Menu item is alwasys disabled in some A/P windows even when the transaction is open or closed.  My question is since I am very limited in the business process knowledge for cancel procedure in those windows:
    Is the Cancel (Data->Cancel) unapplicable on these A/P windows below?
    Goods Receipt PO
    Goods Returns
    A/P Invoice
    A/PCredit Memo
    So SAP Business One does not allow for transactions in these windows to be cancelled regardless of the transaction status?
    I am a developer, I need answer to these in order to do my customization on the event of the Menu item 'Cancel'
    Thanks very much!

    Hi,
    All financial related transactions are not cancel-able. Once documents added, it posted to some G/L accounts. You can only cancel (reverse) those journal entries.
    Thanks,
    Gordon

  • Why are iTunes, View, Window, and Help menu items disabled?

    I am frequently encountering an issue in iTunes 10.5 (141) where all the menu items in the iTunes, View, Window, and Help menus are disabled (greyed out). Why is this happening and can it be stopped?
    I've seen this issue on different Mac OS X 10.7.2 machines. It seems to occur during playlist manipulation, where I'm making new playlists, adding items to them and editing them and the items. In the worst cases, I'm forced to quit and restart iTunes, although I have to quit by using the context menu option in the Dock as the Quit option is disabled in the application.
    I'd appreciate any advice on workarounds for this that don't involve quitting and restarting iTunes.

    I'm also having the same issue.  It was happening with 10.5.1 and now still with 10.5.2.  I'm using a 2008 iMac running 10.6.8.  I do not use iTunes Match.  This seems to happen for no apparent reason i/o/w, I can't determine a pattern as to when it happens, but it occurs about once in every 10 times that iTunes is open and it seems to happen after it's been open for a while, but again, no particular pattern. 
    Sometimes, all the menu items are grayed out, and other times, 70% of the menu items are grayed out.  I can still use the other functionality in iTunes, but must must Quit from the dock (it quits gracefully and no Force Quit is necessary).  Relaunching restores eveything to normal for about a week. 
    I work with technical diagnostic issues and can usually pinpoint a problem, isolate an issue, or determine a pattern, but this one has me stumped. I thought 10.5.2 might fix it, but no.  Maybe 10.5.3?

  • Issue with Disabling one of the menu item in Forms6i

    Hi,
    I have a requirement where I need to disable the IR/PO Information (menu item) created using Form Personalization in Sales Order form.
    If the Warehouse is other than ‘FIM’ it should be disabled for that particular line.
    Please let me know if anybody has done the similare requirement???
    Regards,
    Bala

    Bala,
    I can suggest one work around.
    Say your menu entry is special1.
    You probably already have a personalization that fires for trigger event = special1.
    You can add a condition in that personalization that says warehouse=FIM.
    This way, the PO information screen will come up only for FIM.
    You can consider creating a new personalization that fires for same trigger event = special1.
    The condition says warehouse != FIM
    In the actions, you can say "This menu option is not available"
    Hope this helps,
    Sandeep Gandhi

  • Why Photoshop Elements 11 File-Export menu item disabled?

    why is Photoshop Elements 11 File-Export menu item disabled?
    To Dup:
    bring up the tool and a photoshop project file
    ensure my license is up to date
    ensure this tool is updated
    File Export is disabled
    try may other files, get same result

    I have no idea what it has ever been used for (Save As usually being the route to export to a different format), but it exists and is greyed out in PSE12 as well. I suspect a hangover from an old version.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Query panel menu item disabled in trial version

    I am using the trial verison of CR 2008 ..... the "query panel" menu item under the database expert is disabled so I cannot explore this feature to change my report query. how can this be enabled so I can use it ??
    Thank you

    Hello,
    If you look in the Crystal help file and search on Query panel you'll get this:
    "Use the Query Panel command to open the Business Objects Query Panel in Crystal Reports. In the Query Panel, you can build and modify queries and filter universe data that the program returns to Crystal Reports."
    It only works when you are connected to Business Object Enterprise.
    And to answer your question/issue. You can't modify the Query CR builds if that is what you are trying to accomplish. Your only option is to use a Command Object where you write the SQL statement, then you can edit it in the Command Edit option.
    Thank you
    Don
    Edited by: Don Williams on Oct 29, 2010 11:26 AM

  • How to disable multiple items in menu ring?

    Hi I have a difficulty understanding on how to disable the items in the menu ring control. I need to know so that I will enable some items for the future products for testing. And why is the first item disabled? How can I disable the right items?
    Attachments:
    disabled_items.vi ‏23 KB

    Your vi works perfectly :
    you are disabling the menu items wich correspond to the elements of the 1D array :
    -if the array is empty, no element is disabled;
    -if the array contains 1 element, for instance = 3, the forth (3+1) menu item will be disabled. If the array element equal zero, then the first menu item will be disabled;
    - if the array contains 2 elements, then two corresponding menu items will be disabled, and so on...
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • How to disable and hide the menu items of 'copy From' button of Goods Recei

    hi expert,
    I am new in SAP B1. so please help me.
    Q:How to disable and hide the menu items of 'copy From' button of Goods Receipt PO form?
    Regards
    sanoj

    Hi Sanoj,
    Try This.....
    If pVal.FormType = "143" And pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE And pVal.BeforeAction = False Then
                oform = sbo_application.Forms.GetFormByTypeAndCount(pVal.FormType, "1")
                Dim oitem As SAPbouiCOM.Item
                oitem = oform.Items.Item("10000330")
                'To Disable the button
                oitem.Enabled = False
                'To hide the button
                'oitem.Visible = False
            End If
    Thanks
    Shafi
    Edited by: shafi_sunshine on Sep 15, 2011 7:35 AM

Maybe you are looking for

  • IPhone recognised by iTunes but not by Windows 8.1

    I am having problems following the recent update to iTunes 11.1.5.5.  The problems did not exist before the update. I am operating Windows 8.1 64 bit (with all current updates),  The problems are exactly the same with both my iPad and iPhone: both ha

  • Preview not working properly in PE8

    I have clips captured by PE as .avi and they preview fine with PE7 but with PE8 the sound seems ok but the video stops for 10 seconds then plays for .5 second and then stops again.  I just updated my video driver and that did not help (as a mater of

  • SAP Certified Consultant but no experience except teamsap academy training?

    Hi, I am SAP CERTIFIED SD CONSULTANT but I have no experience in SAP except 30 DAY training from authorized SAP Academy. I took the SAP SD Certification couple of years ago and a comprehensive one month training for Authorized Academy. I was not able

  • R/3 we have partnerfunctions maintained manually which need flow to CRM.

    Hi Guys, We have a scenario where the R/3 partner functions have to flow to CRM. In the R/3 System we have partnerfunctions maintained manually which neednot be a business partner and this information has to flow to CRM. Ex: A customer "20000" has a

  • Clean install Lion wont recognize iPad

    Hi, I just completed a clean install of Lion. Everything went okay, but it turns out iTunes no longer recognizes my iPad as its device. It says that the iPad is synched to another computer, and it needs to erase the contents before allowing me to syn