How to add custom context menu menu items?

How to add custom context menu menu items?

through c++ sdk

Hi Philippe,.

to display a context menu you just replace the path of the menu. For example if you have a menu ' hand: & Layout: MyMenu "you can add it to the context menu"RtMouseLayout:MyMenu"in your MenuDef resource in the file en with the ActionID of your ActionComponent.

Markus

Tags: InDesign

Similar Questions

  • How to add a global menu item?

    Hi all

    I would like to know how to add a menu item for all the menus of the blackberry device. Just as the screen mucher application, you will find the option "Display strange".

    I googled a lot and has not found an appropriate answer.

    Thanks in advance

    Hello

    Do you mean menu added to the device. Check these api
    ApplicationMenuItemRepository and ApplicationMenuItem

    Kind regards
    Priyanka

  • Is it possible to add a context menu to the blocks of text?

    I try to add an element of context menu for text blocks, I'm kind of a begginner with Creative Suite Extension Builder, I found out how to add a context menu, but not how to add it based on what the user right click. If anyone can point me in the right direction (with a bit of the code example will help a lot), I would be very grateful. Thanks in advance!

    You're talking about adding a menu item to the "layout context Menu. Right? If you need the text context Menu, then it's simple...

    Here's what you need to do in this case: you need to fix a BEFORE_DISPLAY event on the menu and check what is the currently selected item. If it is a block of text, you add the menu item. If this isn't the case, you delete it. (You will obviously need to check if it is already there first...)

    Make sure you only to add and remove menu item and not the associated scriptMenuAction.

    Substances

  • How to set a context menu to datagrid?

    I have a datagrid that I want to use a contextmenu to remove items. I know how to add a context menu for the datagrid control, but this adds to the whole grid, including the header and the empy list box. I really want the menu to appear when you right-click an item in the list. Could someone please show me an example of how to do this?

    Here's what I did-

    1 assign the context Menu and methods required for the DataGrid itself as follows: -.

    private var deleteRowContextMenuItem:ContextMenuItem;
    private var lastRollOverIndex:int;
    
    private function dataGrid_createContextMenuItems():void{
         //DataGrid menu
         var dataGridContextMenu:ContextMenu = new ContextMenu();
         dataGridContextMenu.hideBuiltInItems();
    
         //Delete Row menu item
         deleteRowContextMenuItem = new ContextMenuItem("Delete Selected Row",false,false);
         deleteRowContextMenuItem.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,deleteSelectedRow,false,0,true);
         dataGridContextMenu.customItems.push(deleteRowContextMenuItem);
    
         dataGridContextMenu.addEventListener(ContextMenuEvent.MENU_SELECT,dataGridContextMenu_menuSelect,false,0,true);
         dataGrid.contextMenu = dataGridContextMenu;
    
    }
    
    private function dataGridContextMenu_menuSelect(event:ContextMenuEvent):void{
         //Set the selected row and enable its deletion when using right-click
         dataGrid.selectedIndex = lastRollOverIndex;
         deleteRowContextMenuItem.enabled = true;
    }
    
    private function deleteSelectedRow(event:ContextMenuEvent):void{
         if(dataGrid.selectedIndex>-1){
         Alert.show("Delete selected row ("+dataGrid.selectedItem.name+")?",
         "Verification (cannot undo this operation)", Alert.YES|Alert.NO, null, actuallyDeleteSelectedRow);
         }
    }
    
    private function actuallyDeleteSelectedRow(event:CloseEvent):void{
         if(event.detail == Alert.YES){
         //// (Code for deleting the selected row from the DataGrid dataProvider) ////
              dataGrid.selectedIndex = -1;
              deleteRowContextMenuItem.enabled = false;
         }
    }
    

    2. have the following event on the DataGrid definition - (mx) listener

    itemRollOver="{lastRollOverIndex = event.rowIndex}"
    

    It's about everything!

    (In any case, this is the solution I did for that matter...)

  • How to use the context menu of the 10 Blackberry in my app using Air

    Hey please help me

    How do I use the native bb 10 context menu, I got contextmenuevent class to access the events, but I don't know how to add the context menu as long press on any image.

    Is there a documentation or extract is available?

    There are several threads on this and can be found from the search field. Here is the one who can answer your question:

    http://supportforums.BlackBerry.com/T5/Adobe-AIR-development/BB10-adding-context-menu-to-list/TD-p/1...

  • Remove context menu items get Suggestions and add them to the dictionary

    How can I delete the 'get the Suggestions' and the items of the context menu "Add to Dictionary" for an EditField?

    I request this API targets 4.2 but running this application on 4.7 API (TOUR) presents these two new context menu items. Is it possible to disable the elements of pop-up to appear? I tried setting the indicator of EditField.NO_LEARNING but that does not work.

    Thank you.

    Found the solution. You must set the field. NON_SPELLCHECKABLE Pavilion on the style.

  • How can you add a context Menu to a TableView header?

    How can you add a context Menu to a TableView header?

    I would like to add a context menu to a table header that allows you to select the columns that are displayed in a table. I'll give a list of available columns that the user can select.

    See you soon,.
    Jeff

    You can use tableColumn.setContextMenu (.) to install a ContextMenu in a TableColumn, or alternatively, the functionality you're after is also integrated with TableView by calling tableView.setTableMenuButtonVisible (true).

    -Jonathan

  • How can I add a context menu to control nodes?

    I want to add a context menu to a rectangle, but currently the popup menu can only be added to control nodes. What is the reason behind this?

    I guess this is same reason that the ToolTip has a static installation for nodes in control - i.e. method for javafx.scene classes as node have a dependency on javafx.control classes.

    Add an eventhandler to your rectangle (e.g. mouseclicked) and call contextMenu.show () in the eventhandler.
    http://docs.Oracle.com/JavaFX/2.0/API/JavaFX/scene/node.html#setOnMouseClicked%28javafx.event.EventHandler%29
    http://docs.Oracle.com/JavaFX/2.0/API/JavaFX/scene/control/ContextMenu.html#show%28javafx.scene.node, %20javafx.geometry.Side,%20double,%20double%29

  • How to customize the context menu in the legend of plotting the graph of wave?

    I am currently on the creation of a simulation of various control loops as educational objectives. Here, I have a chart in waveform to different signals. Now my question, how to customize the context menu in the track of the Waveform graph legend => when I click on 'image' behind the Plotnames one menu to open options where you can customize the color etc. or plotwidth. But students should not have access to these settings. How can I change or disable this menu? The context menu for the waveform graph, I've already customized by right click on table of waveform-Advanced online-online menu, but for the legend of conspiracy, I have not found this setting...

    Thanks for your answers... I tried different things, but I don't see a solution yet :-(

    See you soon

    DCP

    Hi, STC,

    There have been a number of suggestions for change or disable the table , right-click menu, but I see that this does not affect the context menu of legend , which is what you ask for help with.

    To prevent completely the menu right-click to work, you must disable the chart control entirely. You can do this by double-clicking on the chart and select Advanced Options > active state > disabled. This will prevent the operator to be able to generate a menu right click on the chart control.

    If however you still wanted the table, make a right click menu to work, but the legend made a right-click menu will be disabled, I see two options:

    1. draw a classic decoration square on the legend and the transparent color. This will prevent the mouse clicks to achieve the legend, and transparent it will not interfere with your user interface appearance.

    2 use a Structure of the event to capture the event filter Popup Menu of Activation?  for the chart control. You can then use the Coords property to determine if the mouse is over the legend or not. If this is the case, send faithful away? right Terminal. It will refuse the context menu when the user clicks on the legend of the plot.

  • How to open the context menu programmatically?

    I'm sure I'm missing something very elementary, but my eyes are listening on after a lot of research.

    I have a set ListField implemented that replaces getContextMenu() and creates a custom context menu.

    I also override trackwheelClick() to intercept clicks when it's to the point. I would like a click wheel to simply open the context menu, but I can't understand how to simulate pressing the menu button.

    Thank you!

    crush makeMenu instead, you can only manage a better

  • How to position your script menu item

    Hello

    How position you your menu item to the right place.

    I want to create a new document type.

    How can I get my menu under the new submenu item.

    Thank you.

    P.

    The MenuItem add function shows you how:

    Add MenuItem (associatedMenuAction: MenuAction[, to: LocationOptions = LocationOptions.AT_END][, reference: MenuElement] [, withProperties: Object])

    so all it takes is telling your LocationOptions.AFTER add the new menu item.

  • How to create the context menu PlayBook under WebWorks

    I searched for hours and I can't find any guidance on how to create a context menu for an application PlayBook WebWorks. I refer the menu which is supposed to appear when you drag to the bottom of the top. I tried to use logical blackberry.ui.menu, but it seems that the functionality of the user interface is not yet available for the PlayBook.

    BlackBerry World, they stressed that it is an important aspect of any application PlayBook so there must be a way to do it. Can someone give me a little push in the right direction?

    -Thanks!

    If you referring to the menu that goes down when a user slips to the bottom of the upper part of the PlayBook, please see this for an example application.

    http://supportforums.BlackBerry.com/T5/Web-and-WebWorks-development/sample-code-swipe-down-menu-for-...

  • How can I disable the menu items using manu, Photoshop cs6?

    How can I disable the menu items using manu, Photoshop cs6?

    I packed Photoshop cs6 using AAMEE CS6.

    I need some menu items to disable.

    can someone please process to do, or what records or files need to edit.

    Enjoy the immediate response.

    Thanks in advance.

    There is another discussion on the same topic: http://forums.adobe.com/thread/1234967?tstart=0

    Perhaps the same company has contracted two of your companies

  • What happened to the context menu item 'Add album artwork' in iTunes 12.4?

    I love the new version 12.4 (return of the sidebar). What happened to the item of the context menu add album work?

    Someone tell me where to find it.

    If the command get Album artwork , it has not seem to be an equivalent command in the menu bar that applies to only one song (or a selection of songs).  Not in the main menu bar or anywhere else.  The command in the menu bar to file-> library-> Get Album artwork is available, but this action applies to your entire library.

    However, if you put your music library in the Albums view (to display the view with the album 'tiles' of the work in a grid), I noticed you pouvez with right-click an album and get the cover.  I think that this applies to all the songs on the selected album (or albums).  I guess that's "a" logical, given that missing album art are generally for all the songs on the album.

  • How can we add a new menu item in the file Menu?

    Hello

    I want to create the menu item on the file Menu, I want to create a new menu item, just after the item "save under...". ». Is this possible with SDK?

    Thanks in advance

    Farida kaid

    You can file a new menuitem in any "menu group" defined by the Illustrator. If you look at AIMenuGroups.h, you will find the names of various groups of menuitems. There are two that might be what you want: kSaveForMenuGroup & kSaveMenuGroup. I can't remember how much control you have within a group, but it would at least allow you to get close enough.

Maybe you are looking for