Definition programmatically the menu item & quot; permit & quot;.

I have a soft LOOK that offers a menu point which, when selected launches a dialog box.

I need set the enabled property of the item of menu false after it is selected, that only one instance of this dialog box is expected to be launched, and I don't want to make the modal dialog box. I also need to set the property enabled to true when the dialog box is closed.

I do this through the defaultDataDescriptor?

BTW, the dialog box that starts is not a popup, it's in an AIR application in the main window, in what I call the 'activities '.

I don't know if that's how I had to do, but I create an associative array object and when I disable a menu item in the ItemClick event (if it is a menu item that needs to be deactivated at the time), I store a reference to the menu item in the object. Then when I close the dialog box I have uses the reference to re - activate the menu item.

Tags: Flex

Similar Questions

  • No space under the menu item

    During a flight over a menu item, the item becomes red.  However, you can still see a bit of the yellow background along the bottom.  Can someone tell me what I need to trouble getting the red box to fill the space?  Thank you.

    menuBar.jpg

    @charset "UTF-8";

    / * Sections - version 0.6 - Pre - Release Spry 1.6.1 * /.

    / * Copyright (c) 2006. Adobe Systems Incorporated. All rights reserved. */

    /*******************************************************************************

    The AVAILABLE INFORMATION: Describes the box model, positioning, the order

    *******************************************************************************/

    / * The outermost container for the menu bar, an area of width auto without margin or padding * /.

    UL. MenuBarHorizontal

    {

    margin: 0;

    padding: 0;

    list-style-type: none;

    cursor: default;

    Width: 960px;

    Police: bold;

    }

    / * Value of the menu bar active with this class, currently the definition of z-index to accommodate IE rendering bugs: http://therealcrisp.xs4all.nl/Meuk/IE-zindexbug.html */

    UL. MenuBarActive

    {

    z-index: 1000;

    }

    / * Menu item containers, position of children relative to this container and are a fixed width * /.

    UL. MenuBarHorizontal li

    {

    margin: 0;

    padding: 0;

    list-style-type: none;

    do-size: 100%;

    position: relative;

    text-align: inherit;

    cursor: pointer;

    Width: 160px;

    float: left;

    border: 0;

    }

    / * Submenus should appear under their parent (top: 0) with a higher z-index, but they are first the left side of the screen (-1000em) * /.

    UL. MenuBarHorizontal ul

    {

    margin: 0;

    padding: 0;

    list-style-type: none;

    do-size: 100%;

    z index: 1020;

    cursor: default;

    Width: 160px;

    position: absolute;

    left:-1000em;

    }

    / * Submenu that shows with the designation of the class MenuBarSubmenuVisible, we put the car left so it happens on the screen below its parent menu item * /.

    UL. MenuBarHorizontal ul. MenuBarSubmenuVisible

    {

    left: auto;

    text-align: left;

    }

    / * Container of menu items are same fixed width parent * /.

    UL. MenuBarHorizontal ul li

    {

    Width: 160px;

    }

    / * Submenu that shows with the designation of the class MenuBarSubmenuVisible, we have left to 0, it is on the screen * /.

    UL. MenuBarHorizontal ul. MenuBarSubmenuVisible ul. MenuBarSubmenuVisible

    {

    left: auto;

    top: 0;

    }

    / * Menu items are a light grey block with padding and no text decoration * /.

    UL. MenuBarHorizontal a

    {

    display: block;

    cursor: pointer;

    background-color: #f6ead6;

    Padding: 0.5em 0.75em;

    Color: #333;

    text-decoration: none;

    }

    / Components menu that have mouse over or focus have a blue background and white text * /.

    UL. MenuBarHorizontal a: hover, ul. MenuBarHorizontal a: focus

    {

    background-color: #80290e;

    color: #FFF;

    }

    / * Menu items that are opened with the submenus are on MenuBarItemHover with a blue background and white text * /.

    UL. MenuBarHorizontal a.MenuBarItemHover, ul. MenuBarHorizontal a.MenuBarItemSubmenuHover, ul. MenuBarHorizontal a.MenuBarSubmenuVisible

    {

    background-color: #80290e;

    color: #FFF;

    }

    /*******************************************************************************

    Submenu INDICATION: styles if there is a submenu in a given category

    *******************************************************************************/

    / * Menu items that have a submenu have the MenuBarItemSubmenu class designation and are set to use a positioned background the far left (95%) and vertically centered image (50%) * /.

    UL. MenuBarHorizontal a.MenuBarItemSubmenu

    {

    background-image: url (SpryMenuBarDown.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    / * Menu items that have a submenu have the MenuBarItemSubmenu class designation and are set to use a positioned background the far left (95%) and vertically centered image (50%) * /.

    UL. MenuBarHorizontal ul a.MenuBarItemSubmenu

    {

    background-image: url (SpryMenuBarRight.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    / * Menu items that are opened with the submenus have the designation of the MenuBarItemSubmenuHover class and are set to use a background image "hover" positioned on the far left (95%) and centered vertically (50%) * /.

    UL. MenuBarHorizontal a.MenuBarItemSubmenuHover

    {

    background-image: url (SpryMenuBarDownHover.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    / * Menu items that are opened with the submenus have the designation of the MenuBarItemSubmenuHover class and are set to use a background image "hover" positioned on the far left (95%) and centered vertically (50%) * /.

    UL. MenuBarHorizontal ul a.MenuBarItemSubmenuHover

    {

    background-image: url (SpryMenuBarRightHover.gif);

    background-repeat: no-repeat;

    background-position: 50 95%;

    }

    /*******************************************************************************

    BROWSER HACKS: hacks below should not be changed, unless you are an expert

    *******************************************************************************/

    / * HACK FOR IE: to ensure that sub menus show above form controls, underpin us each submenu with an iframe * /.

    UL. MenuBarHorizontal iframe

    {

    position: absolute;

    z index: 1010;

    Filter:alpha(opacity:0.1);

    }

    / * HACK FOR IE: to stabilize the appearance of the menu items. the slash in the float is to keep IE 5.0 analysis * /.

    @media screen, projection

    {

    UL. MenuBarHorizontal li. MenuBarItemIE

    {

    display: inline;

    f\loat: right.

    Background: #FFF;

    }

    }

    Looks like it was just a little minor additional coding. Remove the height of line here. Seems to fix for me.

    a: hover, a: active, a: {emphasis

        line-height: 1.2;

    text-decoration: none;

    }

  • Need to give only the menu item organization to an admin, how

    Hello

    I have a requirement that there should be a Director of the organization that will be able to see only the Organization menu items such as create and manage. It should be able to create new organizations as well as to manage the existing organization.

    I did these steps:
    1 has created a group of orgAdmin. Given A menuitems - create & manage org and gave all the permissions.

    I created a user and gave that group membership.
    But when this user logs in, he is able to see only the menu items and is not able to create or manage organizations. He is not able to create or search existing org.

    Help, please.

    Try ading the group administrator of the organization...

    concerning
    VM

  • Messages arrive, but the "Inbox" or any other folder open even if the content still there (and almost all the menu items do not work)!

    Using last Thunderbird on Windows 7. Had problems with the operating system and had to use a system restore. When I opened TB, it displays the folders in the left pane, but the credits of "Thunderbird Mail-...» "and the 3 topics: E-mail; Accounts; and advanced features. None of the files would open. I used the "Search messages" function and has been able to show existing and new messages in the 'Inbox '. Also wanted to know if files are always in my 'profile'... and they were all there where they should be. (And almost all the menu items are disabled).
    I wonder if I need to reinstall Thunderbird... maybe the OS issues this morning - and restore - have corrupted or damaged key elements of the program?
    Thank you...

    System Restore is not always a very good thing for applications.

    Reinstall is unlikely to help. But if your accounts are all imap and that you do not have a lot of other data (address book, for example) in Thunderbird, you could start from scratch.

    But before that, you should try Thunderbird started in SafeMode https://support.mozilla.org/en-US/kb/safe-mode-thunderbird

  • What is the menu item "Bring everything to the front ', and how to use it?

    What is the menu item "Bring everything to the front ', and how to use it?

    It's a selection in the window menu and means to bring all open windows of this application at the front and push all the windows open for other applications behind. This makes access to the easiest application windows. However, if you don't have that one window open in an application, then the menuitem does nothing.

  • Where is the menu item "update iTunes game"?

    I am on iTunes 12.4 (Mac) and the menu item "Update of iTunes game" has disappeared from this version. The music library on my Macbook Pro is not sync to the cloud to be available on my iPhone, even if both are signed on the same account and my game subscription is current/paid.

    Thank you, Apple, to make things more difficult that they'll be removing the menu option to force a sync

    Now, how do I just that... force my laptop to update the game?

    The button 'Update iTunes game' old responsibility now 'Updated iCloud music library' file/library.

  • Disable the menu item in the third party application (such as Photoshop)

    Please suggest me to disable the menu item in the third party application (such as Photoshop).

    Hello

    I suggest you to send your query to the following link:

    Photoshop Help Center: http://www.adobe.com/support/photoshop/

    Hope this information is useful.

  • Add the Menu item to default custom Blackberry file browser

    Hello

    I try to add the Menu item by default Blackberry file browser.

    I want to add the menu item 'PRINT' files. It is when I browse through the media-> Explore-> photo, we get a list of images and when clicked on the Menu. I expect the element menu to print it.

    I use ApplicationMenuItemRepository to achieve this. And the documentation says.

    MENUITEM_FILE_EXPLORER
              ApplicationMenuIteminstances registered with this ID appear when the file Explorer application is running.

    MENUITEM_FILE_EXPLORER_BROWSE
              ApplicationMenuIteminstances registered with this ID appear when a user uses the Windows Explorer application to browse files and folders.

    MENUITEM_FILE_EXPLORER_ITEM
              ApplicationMenuIteminstances registered with this ID appear when a user uses the file Explorer application to open a file.

    Whence this Explorer of files mentioned in the CIHI means. I added the Menu item in the browser, and I could see the IMPRESSION here. But I don't know where this IMPRESSION would be visible IF we add the menu item to one of them.

    Thanks in advance.

    Provision ApplicationDescriptor solved my problem.

  • Remove the Menu item

    Hello

    I add a menu item in the MENUITEM_SYSTEM and then I would remove it, but even I use ApplicationMenuItemRepository.getInstance ()... removeMenuItem (ApplicationMenuItemRepository.

    MENUITEM_SYSTEM, myMenuItem); the menu item, always in the list of the menu. Anyone know how to remove it?

    Thank you

    Make sure it is the correct menu item you have added (check the object id).

    You can use the runtime store to ensure this on multiple instances / (as an autostart entry point)

  • Add the menu item to app mail as the mail message?

    Hello

    I know how to add menu items in the mail application, but can I add one, according to the mail message? I want to send a single something in an email and after that one of my applications.

    Is it possible to do? Perhaps a listener?

    Thank you

    Matthias

    Hello Matthias.

    Well, if I understand your message, it's that - you send mail with unique label or message (something unique added with the text of the message) and you want to add the menu item when a user opens the message.

    According to my understanding - I have a solution.

    We have a listener "VeiwExtendedListener", that provide notifications for new, open, close, reply, and forward.

    You can implement this listener and to open(), you get the instance of the message object, which is open.  With this object message get the content of the message, locate the tag unique in the text of the message, if it is in the message, and then add your menu item.

    I hope this will help

    Good luck

    -Nidhi

  • the menu item run method not called

    Eclipse SDK Version: 3.4.1

    BlackBerry JDE plugin for Eclipse Version: 1.0.0.50

    BlackBerry JDE component package Version: 4.5.0.14

    I added a menu item to the contacts list. I would like to get the context when the user clicks the menu item, but the run method is not entered. When the user clicks the item in the menu the main routine is entered with correct arguments. Should not called run with the context method? No exception is thrown.

     

    Import net.rim.blackberry.api.menuitem.ApplicationMenuItem;
    Import net.rim.blackberry.api.menuitem.ApplicationMenuItemRepository;
    Import net.rim.device.api.system.Application;
    Import net.rim.device.api.system.ApplicationDescriptor;

    SerializableAttribute public class BwMain extends Application {}
    private static final long APP_ID = 0xf46f5a7867d69ff0L;
    private static final String ARG_LAUNCH_BW = "1";

    public BwMain() {}
    long menuItemLocation = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ContactsBwMenuItem menuItem = new ContactsBwMenuItem();
    ToolBarMenuButton.AddMenuItem (menuItemLocation, ARG_LAUNCH_BW, menuItem);
    System.Exit (0);
    }

    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    BwMain bwMain = new BwMain();
    bwMain.enterEventDispatcher ();
    }
    else {}
    System.out.println ("App launched from the menu");
    }
    }

    private public static Sub ToolBarMenuButton.AddMenuItem (long location, String argOfAppl, ApplicationMenuItem appMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    app = new ApplicationDescriptor (app, new String [] {ARG_LAUNCH_BW});
    amir.addMenuItem (location, appMenuItem, app);
    }

    private static class ContactsBwMenuItem extends ApplicationMenuItem {}
    {ContactsBwMenuItem()}
    Super (20);
    }

    public String toString() {}
    return "PC connection";
    }

    public Object execute (object context) {}
    try {}
    System.out.println ("input run method");
    } catch (Exception e) {}
    e.printStackTrace ();
    }
    Returns a null value.
    }
    }
    }

    You call system.exit() in the Builder before entering the EventDispatcher. I'm guessing that you add the menu item, but leave the application, and when the menu item is called it is more a reference to the context of the application and decides not to continue. The menu item will not remove itself when the application closes.

  • Failed to add the menu item «Edit adjustment...» "action

    Hello

    I have an action in which I want to change an existing adjustment layer. I can't save the menu item «Edit adjustment...» "in the drop down palette layers.

    To add the step, I tried the following steps:

    1. Select the adjustment layer thumbnail icon
    2. Select «Insert Menu Item»... "in the menu palette flyout
    3. Choose "Edit settings...". "in the menu of the layers palette (how the window insert a Menu item" Menu item: layers: change the setting ")
    4. Press the OK"" button.

    This adds nothing to the action; usually, hit OK adds the menu item.

    I'm doing this right? Is this a known bug? As a solution, can someone point me to action with the step of "Edit settings...". "already in there? Thank you.

    Photoshop CC 2015.1.2 (20160113.r.355 x 64)

    Mac OS X 10.11.3

    I think that you make it harder than it is.  Just record the action and adjust the adjustment layer, you add during the recording of the action.  When did you record the action you should see that there two steps were recorded for the adjustment layer, you added during the recording of the action. "Do adjustment layer" and "current adjustment layer Set.  Insert a stop message with continue after the "make the adjustment layer ' step and check activate the dialog box in step"Set current adjustment layer".»  Layer when allowed by using the action, you can uncheck the walk of the stop.

  • The menu items are reversed in Tablet and mobile display

    I don't know what went wrong with the Web site, www.cebumerchants.com, the menu items are reversed in the mobile and view tablet, but not for the office.

    Can someone please take a look? I need to solve this problem.

    This one is pretty simple. You use float: right on your query support desktop and float: left for the little ones to your selector "nav li '...

  • Help with the Menu item

    I created an action that...

    1. Select a Smart Object Layer, called YOUR IMAGE
    2. Selects the Menu item > layer > Smart Object > replace content

    Action 100% work, but when I convert the action of a script and run it, the IMAGE of YOUR gets selected the menu Item does not show.

    Can anyone help please.

    cTID = function(s) { return app.charIDToTypeID(s); };
    sTID = function(s) { return app.stringIDToTypeID(s); };
    
    //==================== Load Image ==============
    function LoadImage() {
      // Select
      function step1(enabled, withDialog) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putName(cTID('Lyr '), "YOUR IMAGE");
        desc1.putReference(cTID('null'), ref1);
        desc1.putBoolean(cTID('MkVs'), false);
        var list1 = new ActionList();
        list1.putInteger(9);
        desc1.putList(cTID('LyrI'), list1);
        executeAction(cTID('slct'), desc1, dialogMode);
      };
    
    
      // Select
      function step2(enabled, withDialog) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        var ref1 = new ActionReference();
        ref1.putEnumerated(cTID('Mn  '), cTID('MnIt'), sTID("placedLayerReplaceContents"));
        desc1.putReference(cTID('null'), ref1);
        executeAction(cTID('slct'), desc1, dialogMode);
      };
      step1();      // Select
      step2();      // Select
    };
    LoadImage.main = function () {
      LoadImage();
    };
    LoadImage.main();
    

    You have the withDialog variable, but I don't see how define you it. Is a UI checkbox if you don't understand? How do populate you this value?

  • Question about the menu item displays do not correctly the status of 'active '.

    Hello

    I've reproduced for purposes of training "Influence," tutorial site

    and my questions are the following:

    As you can see on the site

    Homepage 

    (1) the order of top menu contact us, has the same features as the other components (speakers, time and place) - see picture attached.

    However, when the user clicks about us contact.

    the menu item is not barred to the outside like any other.

    I checked the condition of the assets is correct.

    The anchor link is placed on the foot of page, designed on the page A-master separately from the Home Page.Active.JPG

    I tried to place the anchor to the Home Page at the last point before the beginning of footer, but no result.

    (2) also if you do a simple test, you will see that by clicking on the heading "Contact us", the menu Time & Place is highlighted

    and if you click on the 'Top' menu, or if you are in "Time and place" content and you click on 'Top', the 'Speakers' menu is also highlighted.

    Please note that this behavior is also indicated to the site of origin INFLUENCE ...

    What I am doing wrong?

    BR

    Nektarios

    Replied here: https://forums.adobe.com/thread/2063776

Maybe you are looking for

  • I can not connect to Messages or FaceTime on my iPad

    I can't log into Messages or FaceTime on my iPad. I can connect in iCloud with my Apple but not Messagess or FaceTime. I've updated to 9.3.4. I recently received hundreds of emails from some Asian spammer all at once. I think that my message of accou

  • Crash to the iMac 5K

    my iMac 5K free and crash when I watch all youtube fullscreen or photo editing with photoshop.i got the Sub crash report: Anonymous UUID: B56C1C96-2A56-70D7-7698-57586FCF53AA Thu Apr 21 22:15:39 2016 Panic report *. panic (cpu 6 0xffffff80197ce40a ap

  • 488.2 SendList. equivalent NET

    Hello Is there a 488.2 equivalent NET lib for the former function of gpib - 32.obj SendList? I need to send the same command to selected multiple devices at the same time. Not all devices on the bus. I found the function Board.SendCommands, but there

  • Spooler SubSystem app consumes all CPU.

    I am running Windows 7 64-bit OS.  Can not print, but of course, the system is extremely slow for all functions.

  • Cisco 220 - 48P

    Dear Bro I'm working on the Cisco SMB partner. I'm not clear about PoE + on this Cisco. Incidentally kindly please give me what port number that support PoE + Switch Cisco 220 - 48 p. Better compliance Chan