Is it possible to get menu item checked state?

In a script I need to know the state of a menu items checked state - e.g. the View/Proof Colors menu item.
Is that possible? (and of cause if it is how do I do it?)
Thanks,
Jack

The reason I need the state of "Proof Colors" is that I want to turn on/off the visibility of a layer set depending on its state.
In the layer set I would have my printing adjustments layers. This way it is very easy to compare the image with the softproof. When "Proof Colors" is turned off the printing adjustment layer set would also be turned off - displaying the image without any printing corrections.
When "Proof Colors" is turned on the printing adjustment layer set would also be turned on - displaying the softproof with printing corrections applied.
Jack

Similar Messages

  • Can't get menu items to be displayed

    Hello,
    The answer to my problem is probably quite simple but I can't see it and its driving me crazy, basically I can't get my menu items to be displayed like file, create and search. But what ever I add to the file menu items like open or save isn't displayed and I don't know why I think it may have to do with the action listeners but I'm not sure how or why or it could be because of where it is placed in the code, but again I'm not sure. Any help will be appreciated thanks!
    import javax.swing.*;
    import javax.swing.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.GeneralPath;
    import java.awt.geom.*;
    import java.awt.image.*;
    class CharacterEditor2 extends JFrame implements ActionListener
      private Container pane;
      public JPanel sidebar = new JPanel();
    public JPanel library;
      public JPanel interface1 = new JPanel();
      private JPanel interface2 = new JPanel();
      public JPanel cards = new JPanel();
      public CardLayout layout = new CardLayout();
      public JButton headb = new JButton ("Head");
      public JButton bodyb = new JButton ("Body");
      private JButton legsb = new JButton ("Legs");
      private JButton handsb = new JButton ("Hands");
      private JButton freeHandb = new JButton ("Free Hand");
      private JButton eyesb = new JButton ("Eyes");
      private JButton mouthb = new JButton ("Mouth");
      private JButton earsb = new JButton ("Ears");
      private JButton noseb = new JButton ("Nose");
      private JButton hairb = new JButton ("Hair");
      public CharacterEditor2()
        addWindowListener(new WindowAdapter(){
          public void windowClosing(WindowEvent e){
            System.exit(0);}});
        pane = getContentPane();
        setTitle("JHH");
        library = new library();
        interface2.setBackground(Color.red);
        interface1.setBackground(Color.green);
        Panel p1 = new Panel();
        p1.setLayout(new GridLayout(2,0));
        sidebar.setLayout(new GridLayout(3,0));
        addButton(sidebar, headb);
        addButton(sidebar, bodyb);
        addButton(sidebar, legsb);
        addButton(sidebar, handsb);
        addButton(sidebar, freeHandb);
        addButton(sidebar, eyesb);
        addButton(sidebar, mouthb);
        addButton(sidebar, earsb);
        addButton(sidebar, noseb);
        addButton(sidebar, hairb);
        JMenuBar menuBar = new JMenuBar();
        this.setJMenuBar(menuBar);
        JMenu fileMenu = new JMenu("File");
        menuBar.add(fileMenu);
        JMenuItem openMI = new JMenuItem("Open");
        openMI.addActionListener(this);
        fileMenu.add(openMI);
        JMenuItem saveMI = new JMenuItem("Save");
        saveMI.addActionListener(this);
        fileMenu.add(saveMI);
        JMenuItem closeMI = new JMenuItem("Close");
        closeMI.addActionListener(this);
        fileMenu.add(closeMI);
        fileMenu.addSeparator();
        JMenuItem exitMI = new JMenuItem("Exit");
        exitMI.addActionListener(this);
        fileMenu.add(exitMI);
        JMenu createMenu = new JMenu("Create");
        menuBar.add(createMenu);
        JMenuItem entryMI = new JMenuItem("Entry");
        entryMI.addActionListener(this);
        createMenu.add(entryMI);
        JMenu searchMenu = new JMenu("Search");
        menuBar.add(searchMenu);
        JMenuItem searchCharacterMI = new JMenuItem("Search by Character");
        searchCharacterMI.addActionListener(this);
        searchMenu.add(searchCharacterMI);
        JMenuItem searchBackgroundMI = new JMenuItem("Search by Background");
        searchBackgroundMI.addActionListener(this);
        searchMenu.add(searchBackgroundMI);
        JMenuItem searchMovieMI = new JMenuItem("Search by Movie.");
        searchMovieMI.addActionListener(this);
        searchMenu.add(searchMovieMI);
        p1.add(sidebar);
        p1.add(interface1);
        p1.add(interface2);
        p1.add(library);
       //add scroller to library
       JScrollPane scroller =
             new JScrollPane(library,    
                       JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                       JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
         scroller.setPreferredSize(new Dimension(100,100));
         p1.add(scroller, library);
        pane.add(p1, BorderLayout.CENTER);
      private void addButton (Container c, JButton b)
        b.addActionListener(this);
        c.add(b);
      public void actionPerformed(java.awt.event.ActionEvent evt)
    ((CardLayout)library.getLayout()).show(library, evt.getActionCommand());
      public static void main(String[] args)
        CharacterEditor2 window = new CharacterEditor2();
        window.setTitle("Character Editor");
        window.setSize(900, 700);
        window.setVisible(true);
    }

    It's because you are mixing Swing components and AWT components. The menu items are actually displayed, but they are hidden behind the panel with all the buttons. Things will work fine if you change the following line:
    Panel p1 = new Panel();  // This is an AWT panel. Use this instead:
    JPanel p1 = new JPanel();Read more about it here:
    http://java.sun.com/products/jfc/tsc/articles/mixing/

  • How to make a fly-out menu item checked?

    Hi,
    is there a way to make a fly-out menu item (coming from an XML list) checked - like in this example:
    by the way, I know it's been submitted as a bug already, but fyi sub-menu items (2-1 in the following example) don't work as expected:
    var xmlMenu:XML =
        <Menu>
          <MenuItem Id="item_1" Label="Item 1"/>
          <MenuItem Label="Item 2">
            <MenuItem Label="Item 2-1"/>
          <MenuItem/>
          <MenuItem Label="---"/>
          <MenuItem Label="Item 3"/>
         </Menu>;
    Thanks in advance!
    Davide

    If Harbs says nope, it's nope
    At least now I know it. Thanks!
    Davide

  • Add new menu Item in 11g

    Hi,
    I want to Add new menu item in UCM 11g.
    I have done in 10g throught including
    <$include super.custom_finish_layout_init$> and
    // create a collection
         navBuilder.addChildNode();
    but the same is not working in 11g.
    Please assist me in getting menu item in 11g.
    Thanks.

    Hi,
    Check below URL for more information.
    http://blogs.oracle.com/kyle/entry/modifying_navigation_menus_in_ucm
    Thanks,
    Ravinder

  • Moving menu items

    Blackberry Curve 8330 - Is it possible to move Menu items? For example - While in the Inbox, and highlighted on an email, I press the Blackberry key / button to the left of the trackball and the list of menu items opens. The "Reconcile Now" option is far down on the list. Is there a way to move that up?

    Hi,
    Sorry NO,.
    The menus are hard coded into the OS.
    Checked out my Blackberry FAQ's and Links to Needed Articles here
    http://darkeen.homelinux.com/index.php/Blackberryfaq

  • Create Menu items from table data?

    Wondering if anyone knows of a way(if even possible) to create menu items on logon from table data where the menu data is stored?

    You'd have to make the menu code generic as well - probably the bet bet would be to have each menu item calling a common procedure but passing in the menu item selected - you'll then have to cross reference that with the current function of that menu item and do the right thing.

  • PSE7: no menu items on Organize screen [was:Question]

    I have Photoshop elements 7 and on the organize screen I do not get menu items such as file, etc?

    Hi Gayle
    This is not the Elements forum, so we don't know a whole lot about that application.  Try over at
    http://forums.adobe.com/community/photoshop_elements
    I suspect you are in a Screen mode that does not show Menus and tool bars.  Try pressing the f key to see if toggles back to where you want to be.

  • Get menu problem!

    Hi,
    When I try to get the information regarding a selected menu item using the Get Menu Item Info, I am getting the followintg error:
    "Error 1162 in Get Menu Item Info in .vi
    Reason: Cannot find one or more tags".
    Surprisingly, I am working with this project for quite sometime and I am facing this problem today only and not before. And also, there is another project for which the menu.rtm is same as this file(filename and other operations are different)but it runs without showing any error. I don't know whether there is any bug with LabVIEW or with my program. I have attached the required file. Run the MenuTest.vi and try to access the menus and please help me to get out this unknown error.
    Thanx & Regards,
    Srini.
    Attachments:
    TEST.zip ‏523 KB

    You should not wire a "Get menu item info" in the "default" case !
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Programatically creating Menu item

    Is It Possible to create Menu Items Programatically If Possible Then How to do it.
    Thanks in advance.

    Insert this code within a startup script:
        try{
            companyMainMenu=app.menus.item("$ID/Main").submenus.item("Company Name");
            companyMainMenu.title;
        } catch (e){
            companyMainMenu=app.menus.item("$ID/Main").submenus.add("Company Name");
        var Script1=new File(SCRIPTS_PATH+"Configure.jsx");
        var ScriptAction1=app.scriptMenuActions.add("Configure");
        var EventListener1=ScriptAction1.eventListeners.add("onInvoke",Script1,false);
        var utilesScriptMenuItem1=companyMainMenu.menuItems.add(ScriptAction1);
        var SubMenu; // First level submenu
        try{
            SubMenu=companyMainMenu.submenus.item("Submenu 1");
            SubMenu.title;
        } catch (e){
            SubMenu=companyMainMenu.submenus.add("Submenu 1");
        var submenuScript1=new File(SCRIPTS_PATH+"Action.jsx");
        var submenuScriptAction1=app.scriptMenuActions.add("Action");
        var submenuEventListener1=submenuScriptAction1.eventListeners.add("onInvoke",submenuScript1,f alse);
        var submenuScriptMenuItem1=SubMenu.menuItems.add(submenuScriptAction1);

  • Computing menue items on the fly

    Hello,
    is it possible to compute menue items only if the menue is selected? The reason is, that computing the items for all menues is very time consuming in our application.
    Regards,
    Achim

    Hello,
    we are navigating through a document set were we restrict the documents via property values. Every properties is presented via a menue and the possible values are the menue items. To compute the possible values for all properties is expensive and it would be much faster if we compute these properties only if someone is looking for them by opening one menue.
    Regards,
    Achim

  • Check menue item does not work

    Hello,
    I create a menu item MI_DEBUG of type Check in a submenu named EXTRAS_MENU.
    In the menu item code I want to enable debug logging of the current user actions.
    In the Menu Startup Code I set the status UNCHECKED.
    When the user clicks the menu item I want the status to be changed to CHECKED and back on a second click
    Menu Startup Code
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb Menu Startup Code');
        ELSE
            set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
        END IF;
    END;Menu Item Code
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb mi_debug');
        ELSE
            my_debug.pl('EXTRAS_MENU.MI_DEBUG found','zvc_menu.mmb mi_debug');
            my_debug.pl('Status '||get_menu_item_property(mi_id,CHECKED),'zvc_menu.mmb mi_debug');
            IF get_menu_item_property(mi_id,CHECKED) = 'TRUE' THEN
                my_debug.pl('property(CHECKED) = TRUE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
            ELSE
                my_debug.pl('property(CHECKED) = FALSE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_TRUE);
            END IF;
        END IF;
    END;But I never get the checked sign in the menu and every time my debug messages say, that the property CHECKED = 'TRUE'.
    I even have tried it with PROPERTY_ON/OFF as some examples suggest, but it doesn't work.
    Any ideas what is wrong with my code?
    Forms [32 Bit] Version 11.1.1.4.0 (Production)
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    Regards
    Marcus

    Hm. In that case the only thing that comes to my mind is to apply the latest patchset for forms 11gR1 which is 11.1.1.6 if memory serves.Not possible, applying patches requires tons of tests for many applications.
    Does it work in a previous version of forms?This is a new menu item and I have not other version available to test.
    Another thing I found: When I open or close a form after clicking the menu item, then the check mark appears. Changing the label of an item works without opening a form.
    Therefore I changed my Menu Item Code to
    DECLARE
        mi_id   MENUITEM;
    BEGIN
        mi_id   := find_menu_item('EXTRAS_MENU.MI_DEBUG');
        IF id_null(mi_id) THEN
            my_debug.pl('EXTRAS_MENU.MI_DEBUG not found','zvc_menu.mmb mi_debug');
        ELSE
            my_debug.pl('EXTRAS_MENU.MI_DEBUG found','zvc_menu.mmb mi_debug');
            my_debug.pl('Status '||get_menu_item_property(mi_id,CHECKED),'zvc_menu.mmb mi_debug');
            IF get_menu_item_property(mi_id,CHECKED) = 'TRUE' THEN
                my_debug.pl('property(CHECKED) = TRUE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_FALSE);
                set_menu_item_property(mi_id,LABEL,'Debug on');
            ELSE
                my_debug.pl('property(CHECKED) = FALSE','zvc_menu.mmb mi_debug');
                set_menu_item_property(mi_id,CHECKED,PROPERTY_TRUE);
                set_menu_item_property(mi_id,LABEL,'Debug off');
            END IF;
        END IF;
    END;Now when I click the menu item the first time, the label changes immediately, but not the check mark. When I click the menu item a second time without opening a form the label does not change, this means, that the property CHECKED is only changed, when a form is opend/closed.
    Even better: The initial label id Debug, clicking the item should change it to+ Debug on+ and on subsequent clicks change between Debug on and Debug off
    1. Click -> Label changes to "Debug on", check mark unchanged
    2. open a form
    3. Check mark is shown but label is the default Debug
    4. close the form
    5. Check mark is not shown, label is back to Debug on
    6. Repeat step 2 - 5 with the same result
    Different sequences of clicking and opening/closing forms give seemingly random combinations of check mark on/off and label texts.
    Conclusion:
    A menu check item is a very obstinate thing. I will not use it if I can avoid it.
    Regards
    Marcus

  • I want to get rid of the Bing screen but there is no "menu at the top of the Firefox window" for me to "select Tools and then select the Add-ons menu item. "

    I suddenly have a "Bing" screen when I sign onto Firefox---and I want to get rid of it. The support section of Firefox says
    1. "From the menu at the top of the Firefox window, seledt Tools and then select the Add-ons menu item."---but I see no "menu item" nor Tools, much less Add-ons.
    2. "In the Add-ons window, click on the Extensions panel."---but how do I find the Add-ons window?
    3. Find the Bing Bar and Search Helper Extension in the list and click Disable for each of them."---but what and where exactly is that?
    At the top of the screen is only a Yahoo icon on the left and to the right of it a search box, "Web Search,", "My Apps," Yellow Pages," "Weather," "Updates," and "Skype." to the right of those there is a green cross saying "Add more apps. to your toolbar" and to the right of that a sort of gear shift looking icon saying "toobar settings."
    So, in short, how do I get rid of the Bing screen and how do I access those Tools?
    Thanks.

    To get rid of Bing Search Window..............
    Click on View tab / Tools and un-check 'Search' (alias for 'Bing')

  • Goods Receipt Not Possible for PO with Free Item Checked (Tick Mark)

    Hi Team,
    We have a PO with one line item where the free item check box is ticked and net price is blank.
    When we try to make GR with respect to the PO via T Code MB01 we are getting error as " No goods receipt possible for purchase order xxxxxxxxxxx  for item xxxx "
    Thanks
    Vijay

    Hello,
    You can find confirmaton control under following customization path;
    SPRO>>Materials Management>>Purchasing>>Confirmations>>Set Up Confirmation Control
    Execute and select 004 (Inbound delivery) and double click on confirmation sequence.
    004 is inbound delivery.
    Also make sure that you first need to go to ME22N and then in item detail of purchase order tick the check box of confirmation required. Once this this is ticked you can create inbound delivery.
    You need to create inbound delivery with VL31N.
    Go to VL31N >>Enter PO number and execute. and save the delivery.Now confirm the transfer order with LT12 which is created and do the post goods reciept.
    BR,
    Tushar

  • Is it possible to add a single Entry Point menu item to a LabVIEW OI menu?

    Using the "TestStand - Insert Commands in Menu (Application Manager).vi" library VI, I can add all Configure menu items to a menu with the "CommandKind_ConfigurationEntryPoints_Set" option for the "Commands" input.  But the VI is missing an "Index" input to specify a single item from the collection.  (UnlikeThe "AplicationMgr.ConnectCommand()" function, which allows you to specify a single item with an index.)
    The issue is the same for Execution Entry Points and Tools as it is for Configuration Entry Point--I can create a menu containing the entire collection, but not a single item.  I tried to delve into the VI to change it to allow specification of individual commands using an index using the Commands.Insert() function instead of the Commands.InsertKind() function, but without success.
    As an aside, even when I add all Tools to a menu (using CommandKind_Tools_Set), TestStand exits with a warning that 12 "RunTimeMenuItem" objects were not released.  I'm wondering if I should be using the Engine.GetRunTimeToolMenuItems interface instead.  But if that's the case, I think I have to build the menu myself and can't use the TestStand library VIs to automatically run commands when their corresponding menu items are selected.  Maybe this is just a bug in the TestStand VIs?
    I am using TestStand 2010 SP1 with LabVIEW 2014.
    Any advice would be appreciated.  Thanks.
    -Jeff

    I am closing the TestStand Engine, VI Refnum, Quit Application event, and Event Callback, just like in the example.  I get the TestStand unreleased reference error only if I call that VI to include the Tools menu.  The fact that the unreleased objects are "RunTimeMenuItem" objects also implies to me that the problem is specific to the Tools menu items.  Since Tools menus seem to have their own API (which involves RunTimeMenuItems), it seems to me that the VI (or the TestStand Engine?) is doing something with RunTimeMenuItems that I can't see, and is somehow losing track of them (because that VI gives me no visibility to any RunTimeMenuItem objects).  Is it possible that one should explicitly use RunTimeMenuItem objects instead of the menu VI when dealing with Tools menus?  (Maybe the error is due to my using TestStand 2010 SP1 on Windows 8.1, for which TestStand 2010 SP1 is not officially supported?)

  • Acrobat Forms - Make fillable text box appear after box checked or drop down menu item selected

    I have been asked to build an approvals form for my workplace however the approval processes vary considerably depending on the subject. I have been asked to create a list of topics in the form of check boxes or a drop down menu which will then populate a list of text boxes with differing approval authorities and corresponding spaces for signatures.  i.e. if 'Topic 1' is selected a list of names and signature spaces will appear, however if 'Topic 2' is selected a different list of names and signature spaces will appear instead.
    In order to achieve this I think I only need to find out how to link check boxes or drop down menu items to the appearance of different text boxes.
    I should also add that I am a beginner with this stuff.
    Thank you very much for any help you can provide.

    Remove the red coloured part
    ul.MenuBarHorizontal ul.MenuBarSubmenuVisible {
    left: auto;
    top:0;
    or start again with the original SpryMenuBarHorizontal.css and follow the rules as in http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php#one.
    Either way will get you back on track.
    Good luck.
    Ben

Maybe you are looking for

  • How can i use only black cartridge for printing documents

    i have today installed hp 1510 all in one printer, it uses ink from the both cartridges i just want to use black ink for printing documents, how can i do that This question was solved. View Solution.

  • Unexpected behaviour on SharePoint 2013 and task sync

    hello, i deleted the work management service application due to issues with try to get my tasks to sync, as i deleted it the "sync to outlook" had changed to "Connect to outlook" on my tasks area and i can now sync tasks to my outlook. i was under in

  • TS3297 Can't buy in-app purchase

    I wanted to buy an in-app purchase for clash of clans but it said " Your Purchase Could Not Be Completed. Fot assistance, contact itunes support" Can you please help me with this

  • ORA-12154 as oracle user, whit the root account it works fine

    Hello there, I've a problem with a client installation if I try to connect to the database. I've the following configuration: 1. Database: Running on a Ubuntu Jeos VM, Oracle 11g (Release 11.1.0.6.0 64 bit) 2. Client: Running on a CentOS 5.2 VM, Orac

  • Help in object

    hallow i wont to now what this stetment does data: b_ctrl type ref to ig_<ctrl>. <b>b_ctrl = wd_this->get_<ctrl>_ctr( ).</b> Regards