Drop through right click on LabVIEW Tree

I have a LabVIEW Tree control on my front panel and I would like to allow the user to select an item on the tree with a right click. I believe it's called right click drop through, but I can't find any information on it. Is it possible to do this?
Jim Haas
Solved!
Go to Solution.

One way to do this would be to use the Tree:Mouse Down? filter event case.  Wire a '1' constant to the Button Output Data Node and all clicks will be treated as a left-click.

Similar Messages

  • Context Menu on the right click of af:tree node

    Hi Experts,
    I am using drag and drop functionality in af:tree.In that i used one tree for drag source and another one tree for drop target,and it is working as expected.
    Now I want to bring one additional option in the context menu of the target tree node that is ,when i right click on any of the target tree node in addition to the default menu options like "Collapse","Expand" i want to add one more option .For this i added "contextMenu" facet after the "nodeStamp" facet inside the tree.
    *<f:facet name="contextMenu">*
    *<af:popup id="p1">*
    *<af:menu text="Delete" id="m1">*
    *<af:commandMenuItem text="Delete" id="cmi1"*
    *action="#{myWorkflow.deleteWorkflowNode}"/>*
    *</af:menu>*
    *</af:popup>*
    *</f:facet*>
    Now the problem is : before using drag and drop the context menu workes without any problem .But after using drag and drop the context menu is not popped up.
    can anybody help me to resolve this?
    Thanks,
    Priya.

    Hi Frank,
    1. I am using JDeveloper 11.1.1.3 version
    2. Drop target tree is having the context menu.
    3. Yes . In Drop event am calling a backing bean method with return type DnDAction and i return the value as DnDAction.MOVE to reflect the changes in the database table to the target tree.
    Regards,
    Priya.

  • Right Click event on tree table component

    Hi,
    I am using Jdev Studio Edition Version 11.1.1.4.0.
    I have one requirment to open popup on right click on tree table.
    give me some guide line how to do that in adf
    Thanks
    Kiran.

    drag and drop af:popup component into the contextMenu facet of the af:treeTable component

  • Management can not go through right click on My Computer

    Through the administrative tool I can enter the computer management
    It's not spyware I have Kaspersky and I perform scans on a daily basis and with other tools
    Anyone got a solution???
    Thank you.

    Hi gil111,
    It is possible the registry key value is incorrect. Please perform the steps below to check this issue:
    Step 1: Backup registry key
    ==================
    1. Click Start, click Run, input "REGEDIT" (without quotation marks) in the Search box and press Enter.
    (Click Yes when User Account Control message pops up.)
    2. Navigate to the following registry key by expanding the "+" beside the registry tree in the left pane:
    HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell
    3. Right click on "Shell", click "Export"; please name the file as "RegBackup" (without quotation marks) and then save it to the C:\ drive as a backup.
    Note: In case we need to undo the modification, we can double click this RegBackup.reg file to restore the registry key.
    Step 2: Import the registry key
    ==================
    1. Click Start, click Run, input "Notepad" (without quotation marks) in the Search box and press Enter.
    2. Copy and paste the contents between the "**************" line listed below into the Notepad:
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage]
    @=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
      00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,\
      79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,\
      00,34,00,30,00,30,00,00,00
    "MUIVerb"=hex(2):40,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,\
      6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
      00,6d,00,79,00,63,00,6f,00,6d,00,70,00,75,00,74,00,2e,00,64,00,6c,00,6c,00,\
      2c,00,2d,00,34,00,30,00,30,00,00,00
    "SuppressionPolicy"=dword:4000003c
    "HasLUAShield"=""
    [HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\Manage\command]
    @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
      00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,43,00,6f,00,\
      6d,00,70,00,4d,00,67,00,6d,00,74,00,4c,00,61,00,75,00,6e,00,63,00,68,00,65,\
      00,72,00,2e,00,65,00,78,00,65,00,00,00
    3. Click File -> Save as…
    4. Save the file as manage.txt on to the Desktop.
    5. Right click on manage.txt on the Desktop and Rename it to manage.reg.
    6. Right click on the manage.reg -> click Merge.
    7. Click Yes twice and then click OK.
    Please check if the issue can be resolved.
    However, if the issue persists, we can also test the issue in Clean Boot. If the issue disappears in the Clean Boot environment, we can use a 50/50 approach to quickly narrow down which entry is causing the issue.
    In addition, if there is any error message occurs in this issue, please capture a screenshot of it and upload it to this thread or to SkyDrive at www.skydrive.live.com.
    Hope it helps.
    Regards,
    Linda

  • How to handle Right Click Event in Tree

    Hi ,
    I am Vaibhav. I have create a tree in Apex 4.0. I have to add options insert,update,delete in right click on tree node. So
    what is the solution for this scenario.
    Thanks in advance,
    Vaibhav
    Edited by: user10600404 on Apr 27, 2011 2:46 AM

    hi
    Thanks for reply,
    I have add this in tree query
    select case when connect_by_isleaf = 1 then 0
    when level = 1 then 1
    else -1
    end as status,
    level,
    rt.NAME as title,
    null as icon,
    ex.ID as value,
    null as tooltip,
    null as link
    from TREE_MASTER ex
    inner join ROOT_MASTER rt
    on ex.PARENT_ID=rt.ID
    start with ex.PARENT_ID = 11
    connect by prior ex.PARENT_ID=ex.CHILD_ID
    But tree title not looks in correct way It Looks like as Javascript synatax. So what is the solution for this ?
    Regards,
    Vaibhav

  • Displaying a context menu on right click on rich tree

    Please see the code below. I want to display a context menu on right click on a rich tree.
    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich">
        <style>
            .col1{ width:50%; vertical-align:top;
        </style>
        <h:form>   
            <h:panelGrid columns="1" width="100%" columnClasses="col1">
                 <rich:tree style="width:300px" nodeSelectListener="#{simpleTreeBean.processSelection}"
                    switchType="client"
                    value="#{simpleTreeBean.treeNode}" var="item" id="item">
                    <rich:componentControl event="onClick" for="menu" operation="show">
                    <f:param value="#{item.data}" name="send" />
                </rich:componentControl>
                </rich:tree>
                </h:panelGrid>
            <a4j:outputPanel ajaxRendered="true">
                <rich:panel>
                    <f:facet name="header">Last Menu Action</f:facet>
                    <h:outputText escape="false" value="Right Click :  #{simpleTreeBean.nodeTitle}" id="selectedNode" />
                    <br/>
                </rich:panel>      
            </a4j:outputPanel>
                 <rich:contextMenu event="oncontextmenu" actionListener="#{SimpleTreeBean.processCurrElement}" attached="true" id="menu" submitMode="ajax">
                <rich:menuItem ajaxSingle="true">
                <b> #{simpleTreeBean.nodeTitle}</b> Send To
                    <a4j:actionparam name="det" assignTo="#{ddmenu.current}" value=" #{simpleTreeBean.nodeTitle}"/>
                </rich:menuItem>
            </rich:contextMenu>
        </h:form>
    </ui:composition> With this code, i need left click at first then right click, then it will show the selected node. I want to get the value of the node title on right click. Please help me with it. The SimpleTreeBean code:
    package com.dW;
    import java.awt.event.ActionEvent;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Properties;
    import javax.faces.FacesException;
    import javax.faces.context.ExternalContext;
    import javax.faces.context.FacesContext;
    import org.richfaces.component.UITree;
    import org.richfaces.event.NodeSelectedEvent;
    import org.richfaces.model.TreeNode;
    import org.richfaces.model.TreeNodeImpl;
    public class SimpleTreeBean
        private TreeNode rootNode = null;
        private String nodeTitle;
        private static final String DATA_PATH = "images/simpleTreeData.properties";
        private void addNodes(String path, TreeNode node, Properties properties) {
            boolean end = false;
            int counter = 1;
            while (!end) {
                String key = path != null ? path + '.' + counter : String.valueOf(counter);
                String value = properties.getProperty(key);
                if (value != null) {
                    TreeNodeImpl nodeImpl = new TreeNodeImpl();
                    nodeImpl.setData(value);
                    node.addChild(new Integer(counter), nodeImpl);
                    addNodes(key, nodeImpl, properties);
                    counter++;
                } else {
                    end = true; } }  }
        private void loadTree() {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExternalContext externalContext = facesContext.getExternalContext();
            InputStream dataStream = externalContext.getResourceAsStream(DATA_PATH);
            try {
                Properties properties = new Properties();
                properties.load(dataStream);
                rootNode = new TreeNodeImpl();
                addNodes(null, rootNode, properties);
            } catch (IOException e) {
                throw new FacesException(e.getMessage(), e);
            } finally {
                if (dataStream != null) {
                    try {
                        dataStream.close();
                    } catch (IOException e) {
                        externalContext.log(e.getMessage(), e);
        public TreeNode getTreeNode() {
            if (rootNode == null) {
                loadTree();
            return rootNode;
        public void processSelection(NodeSelectedEvent event) {
            UITree tree = (UITree) event.getComponent();
            nodeTitle = (String) tree.getRowData();
        public void processCurrElement(ActionEvent event) {
            UITree tree = (UITree)event.getSource();
            nodeTitle = (String)tree.getRowData();
            System.out.println(nodeTitle);
        public String getNodeTitle() {
            return nodeTitle;
        public void setNodeTitle(String nodeTitle) {
            this.nodeTitle = nodeTitle;
    }

    Hi,
    Do you have a solution for this? Looking for exactly the same.
    As far as I have it at the moment I have the backing object added to the attributes of the node:
    <a4j:support event="oncontextmenu"
                                         oncomplete="#{rich:component('foldersContextMenu')}.doShow(event, {})"
                                         actionListener="#{customerBean.buildContextMenu}" reRender="foldersContextMenu, selectedNode">
                                <f:setPropertyActionListener value="#{item}" target="#{customerBean.nodeTitle}"/>
                                <f:attribute name="node" value="#{item}"/>
                            </a4j:support>This allows me to get the object in the backing bean:
    public void buildContextMenu(ActionEvent event) {
            UIComponent component = event.getComponent();
            log.info("component: " + component.getId());
            Category node = (Category) component.getAttributes().get("node");
            log.debug("node : " + node);But how I translate that to setting this as the current node is causing me problems.
    Thanks
    Jon

  • Problems with right click in hierarchical tree

    Hi,
    I create a popup menu in a hierarchical tree and want to call this referencing to a node in the tree.
    I can get the node in GET_TREE_NODE_SELECTION but the node need to be selected for this...
    How can I select a node with a right click?? and then call the popup menu??
    Am I clear??
    Why the trigger MOUSE_CLICK doesn't works for right clicks??? I know about the SYSTEM.MOUSE_BUTTON_PRESSED but to use this I need a RIGHT_CLICK_TRIGGER... that I don't know how to call...
    thanks!

    Hi,
    This is a bug(96289), the same as the Base bug 1477977 which has NOT been fixed in Release 9.0.2 (as Oracle anounced) or in any earlier releases.
    Bug 1477977 was currently scheduled for the 1st patchset of Forms 9.0.4
    I don't know if it was fixed. Contact Oracle about that.
    Right now, to achive what you want you must left click to select a node. This means that the use must do a left click and a right click to have an item selected.
    Monica

  • On right click, the focus is not set on tree node.

    Dear members,
    I have a tree and a database block, when i right click on a tree node, the focus is not set on the node.
    If I first click on the node and then right click on selected node it populate the database block.
    But I want to populate the datablock on right click.
    how to implement it?
    Regards:

    No body ever encountered this problem?
    Any advice would be appreciated.
    Thanks

  • Right click tree node

    Hello all,
    I need to process right click on the tree node. I can get the node and process the action well. But the problem is that the selected node doesn't have a gray box (selection indicator) like when I left click it.
    Please help me with this,
    Thanks,
    Fantabk

    Dear Siva,
    You can follow the following steps:-
    - Create local class (eg:- lcl_screen_handler) as handler class.
    - Define and implement methods handle_node_context_menu_req and handle_node_context_menu_sel for handling right click.
    - In Method handle_node_context_menu_req use CALL METHOD menu->add_function for adding entries to context menu.
    - In Method handle_node_context_menu_sel based on node_key and fcode handle logic for right click.
    - Define event handler (eg:- grc_event_handler     TYPE REF TO lcl_screen_handler) to handle events for right click on tree.
    - After creating Tree, specify events that are to be handled and assign them to tree instance
    eg:- lwa_event-eventid = cl_simple_tree_model=>eventid_node_double_click.
          lwa_event-appl_event = ' '.   "system event, does not trigger PAI
          APPEND lwa_event TO lit_event. (where, lit_event TYPE cntl_simple_events)
    - Also, register PAI for context menu as follows:-
    Process PAI if context menu select event occurs
      CALL METHOD grc_tree->set_ctx_menu_select_event_appl (where grc_tree is Tree instance)
        EXPORTING
          appl_event = 'X'.
    - Register Tree events as follows:-
    CALL METHOD grc_tree->set_registered_events
        EXPORTING
          events                    = lit_event ....
    - Create event handler instance for tree
      CREATE OBJECT grc_event_handler. (where, grc_event_handler is already declared on top)
    - Set event handler method to handle various events on tree node
    eg:-  SET HANDLER grc_event_handler->handle_node_double_click FOR grc_tree.
            SET HANDLER grc_event_handler->handle_node_context_menu_req FOR grc_tree.
            SET HANDLER grc_event_handler->handle_node_context_menu_sel FOR grc_tree.
    The events should be handled now. I have followed this approach and it worked for me.
    Regards,
    Ashish

  • Right-clicking on sub-vi crashes LabView 7.0

    When I right-click on a sub-vi on the block diagram, LabView crashes completely without any error messages.
    I have uninstalled LabView and re-installed it and the device drivers, but it still happens. It doesn't matter which vi is open and which sub-vi is right-clicked on.
    It only started doing this last week.
    Brian Smith
    Advanced Light Source
    Lawrence Berkeley National Laboratory

    The failure log file is not written when LabView crashes after I right-click on a sub-vi or a control reference.
    I just sent email to [email protected] explaining what you told me and I got an automatic reply saying that I need to send them email via the "ask" web page. I'm afraid this will go in circles because I think this is where I started with the process.
    Here is the reply I got:
    Thank you for contacting National Instruments. Your technical support
    questions are important to us. In order to ensure a high level of service
    and fast resolution, we ask that all new electronic support requests be
    submitted through our web site. Please resubmit your new technical support
    question on our Ask an Eng
    ineer Page at http://www.ni.com/ask. Your
    original question is included below.
    Our Ask an Engineer page saves you time by remembering your system
    information and allowing us to ask important configuration questions up
    front. This eliminates the need for multiple clarification e-mails and
    makes the support process more efficient on both sides. After you have
    submitted your new request, subsequent correspondence for that request is
    handled through e-mail.
    If you do not have access to the Web, as an alternative you can contact us
    via phone. For contact details, please refer to your product or service
    agreement literature.
    If you believe you have received this message in error, please contact us
    at [email protected]
    Best Regards,
    National Instruments Support
    Brian Smith
    Advanced Light Source
    Lawrence Berkeley National Laboratory

  • Back arrow will not drop down the recent history of pages visited on a right-click.

    I use IE 11. Older versions of IE allowed you to back up to any previous page visited during the current session by right-clicking the back button. The right-click would drop down a list of pages visited, and you could choose any one of them, regardless
    of their order. With IE 11, the right-click has no effect. I must left-click the back button and go through each page previously visited serially before reaching the desired one. Have I inadvertently changed a setting or something?

    Hi,
    Right-click on the back/forward button works from my side(IE 11 on Windows 8.1 and IE 11 on Windows 7 Ulimate SP1). Not sure what is your situation.
    And there seems to be a bug related with IE 11 back button, see here:
    IE 11 back button does not work
    If you do not sure which settings have been modified, then we may consider to reset IE 11, and please take a note:
    Resetting Internet Explorer isn't reversible, and all previous settings are lost after reset.
    Here is a reference:
    Change or reset Internet Explorer settings
    Hope this may help
    Best regards
    Michael Shao
    TechNet Community Support

  • Labview edit time menu and right click popup menus

    How can i add a menu item to the labview edit time menus and to the right click popup menu of any selected object in a block diagram?
    I would like to integrate commonly used tools by me out of the springboard scripting tool into actual labview.
    Solved!
    Go to Solution.

    It sounds to me like you are looking for something like the Right-Click Framework.  Some people really like it, I have not used it extensively myself.  I've had a request to convert a quick drop shortcut into a RCF plug-in, I'll see how it goes.  I have also longed for a good way to hook into the LV IDE to add my own tools, what I find are useful, but not fully satisfactory solutions.
    1)  Right-Click Framework:  Some initial startup costs in terms of downloading and installing.  Start up is a bit slow (on my machine), and the workflow is a bit different than what I am used to:  Select an object, press the hotkey, right-click.  You can get used to it, but it is not as responsive as a built-in right-click since you can't right-click in one action.  It seems to be easily extensible, I'll know more in a day or two.
    2)  Quick Drop:  Built into LV.  Slow startup like RCF.  Fairly easily extensible.  Not context aware (unless you build it in to your plug-in), so you have to choose your letters wisely.  After the initial pain, the response time is not shabby, does require the extra Ctrl-Space action.  
    3)  Tools Menu:  I drop a few things in here, like my custom connector pane editor.  Not bad, but there are no keyboard shortcuts (what a pain), so it is good for actions that you might call once or twice on a given VI.
    In short, all of these methods require extra clicks or keypresses and are a bit sluggish.  If something like copy and paste behaved this way we would never use LV again, but if your tool truly saves you a bunch of steps it is well worth it.  I have almost run out of letters to use for my QD shortcuts.
    Addedendum:  Personally I am not quite ready to start talking to my computer, but LVSpeak seems pretty cool, Smashy Smashy.

  • Downloaded brushes not showing on right click drop-down list

    I have recently reinstalled Photoshop cs5.1 and ran into a problem. My installed brushes are not showing up on my right click drop-down list. I took the old brushes and copied the folder to the new location. When I go to use these brushes there used to be a big drop down list when I right click anywhere on the canvas. It now only shows the basic brushes, but here is the thing though I can load and see them through the preset manager but they are not on my drop-down list like they were before I reinstalled.
    I have noticed something odd as well this may help in the solution I have noticed that some files from Photoshop are saved on to my second hard drive, but I do not know if this is the cause.
    The reason I reinstalled is my GPU acceleration wasn't working and had to reinstall to fix this. If any other information is needed I would be glad to share. This is just cutting into my workflow time since I have to load every single brush singlely and if I load them all I have to search through every single brush to find what I need.
    Thank you!

    I found a solution to my problem it may help others! I run Windows 7 64-bit this has two seperate folders for applications when installed. I did a windows search for one of the names of the available brushes on my right click list. The search showed me where the brushes were at. (Example: I searched in windows: DP Brushes) Aparently photoshop normally installs as a "32-bit" program in this location, C:\Program Files\Adobe\Adobe PhotoShop CS5.1\Adobe Photoshop CS5.1 (64 Bit)\Presets\Brushes it is here that I copied my new brushes to and it showed up again. Hope this helps anyone who was in my situation!

  • Firefox 6. When right clicking a tab no drop-down menu appears. Why do I not have the option to pin, unpin, etc.

    I'm using Firefox 6 with all current updates. This is on a desktop pc running Windows XP (Service Pack 3).
    At some previous time I was able to pin tabs - I pinned three. Lately I do not have a drop-down menu when right clicking on a pinned or unpinned tab. The feature is just not there.

    Try the Firefox SafeMode. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    # You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    # Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How to display a seperate right click menu for each item of a tree control?

    Hi I want to display a specific right click menu when a particular tree item is selected. I know how to create a menu and how to display it. I am using the function GetLabelFromIndex() to get the active tree item and then compare the label and based on the result display a manu for that item. Now my problem is that when I use the above function in the EVENT_RIGHT_CLICK it gives me the error "the Index passed is out of range" while using the same function with the same arguments in EVENT_SELECTION_CHANGE it gives no error...below is the part of my code
    case EVENT_RIGHT_CLICK:
    GetLabelFromIndex(panelHandle, PANEL_TREE, eventData2, label1);
    //The function gives the stated error here
    if(eventData1)//after it I compare the result and display the menu
    case EVENT_SELECTION_CHANGE:
    GetLabelFromIndex (panelHandle, PANEL_TREE, eventData2, label1);
    //The function works fine here
    if (eventData1)
     If any one have any idea whats going on or alternate way of doing this Please share knowledge...Thanks
    If you are young work to Learn, not to earn.

    Hi,
    one possible approach of solving this problem is looking closer at the error message: The error "the Index passed is out of range" tells you that something is wrong with the index, either it is too small or too large So why don't you set a breakpoint and check the index value, it might be useful information...
    The other hint is to check the meaning of eventdata2 (using the help): It is different for different events! For the event_right_click it gives the horizontal mouse position, not the index as event_selection_change does...

Maybe you are looking for

  • SSIS running through SQL Server agent Job Fails --SQL Server 2012

    Hi All, I am getting the below error. Executed as user: sak\thiru. ...ion 11.0.2100.60 for 64-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  3:31:17 PM  Error: 2014-03-07 15:32:22.46     Code: 0xC0202009     Source: Commo

  • How Do I Solve this Problem when Copying Library from Backup Disks?

    I recently had a pc problem that resulted in the repair company having to back up my hard drive (which included my I Tunes Library) onto DVDs. When trying to upload the ITunes library from the DVD to my new computer (after downloading I Tunes softwar

  • Pictures in contacts

    i get wrong pictures for my contacts. when i change, delete,.. them on my desktop (osx 10.9) i get totally other versions on my ios devices ( ipad air w ios 7 and phone ios5). seems to me, that the pictures dont get synced properly. any help?

  • Slow file tranfer on my pc

     hai I am having HP pavilion dv6 laptop with windows 7 and a 6gb installed ram which i got when i bought my laptop. It seems that whenever i try to copy my files to external hdd initially it start copying with greater speeds(52mb/s....) but when then

  • Missing Materials numbers

    Hi Friends,                           My material document, material numbers are miising. If the document created is 1.Then next document will be 11.The same is happening for Materials.Some of my friends have suggested that make buffer "0" for that p