Detect clicked cluster in mouse down event for clusters within multiple stacked clusters

With the help of Ben (see http://forums.ni.com/t5/LabVIEW/Determine-cluster-element-clicked-in-mouse-down-event/td-p/1245770)
I could easily find out what sub-cluster had been clicked on (mouse down event) within the main cluster, by using the Label.Text Property.
However if you have a cluster within a cluster within a cluster then you probably have to use individual mouse down events for each sub-sub cluster.
I just wanted to use one "Main Cluster":Mouse Down event and from that determine which of the sub-sub clusters had been clicked on - is this even remotely possible?
Chris.

Chris Reed wrote:
With the help of Ben (see http://forums.ni.com/t5/LabVIEW/Determine-cluster-element-clicked-in-mouse-down-event/td-p/1245770)
I could easily find out what sub-cluster had been clicked on (mouse down event) within the main cluster, by using the Label.Text Property.
However if you have a cluster within a cluster within a cluster then you probably have to use individual mouse down events for each sub-sub cluster.
I just wanted to use one "Main Cluster":Mouse Down event and from that determine which of the sub-sub clusters had been clicked on - is this even remotely possible?
Chris.
Yes but... you will have to pass through 26 Kudos worth of Nuggets to get there (Well maybe you can skip the last 5 or so).
This Nugget by Ton teaches us how to use Dynamic Event Registration. (15 Kudos, must read and understand)
This Nugget by me talks about getting at references inside arbitrary data structures. (11 Kudos, You don't have to read the whole thing, only enough to get at nested objects).
SO use the stuff I wrote about to gather up the references to the clusters. Build them into an array and then use dynamic event registration and what you learned in that thread you linked in your question.
So Possible? Yes!
Easy? YOU tell me.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • Problems with Mouse Down event for a picture control embedded in tab.

    I noticed that when trying to get a Mouse Down event for a picture control that the Mouse Down will not be 'fired' if the picture is embedded in a tab control. It also appears that this problem exists for other controls (I only tested a slider in addition to the picture). It isn't much of an issue for me now as I can just poll the mouse property of the picture control, but the Mouse Down event has information that I may want access to in my next software revision (button pressed, and Alt mod). I could do that by handling the Mouse Down event for the tab itself and checking to see if the the mouse property isn't -1, -1 for the picture, but that seems a little bit too kludgy (sp?) to me and wouldn
    't address the issue with other control types. Any chance of this being addressed by a patch sometime in the next couple of months???
    Attachments:
    TabProblem.vi ‏69 KB

    The problem I reported above was in LV 6.1.
    As a work-around, I used the mouse down on the tab control and did the math to decide if the picture was clicked.
    I have been told that this was fixed in LV 7.0. I can not confirm.
    You could call NI and ask about the service request number I cited above.
    I hope this helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Mouse down event handling of table control in subvi

    Hello Everyone.......
    I have created a vi which has a table control and xy graph... the function of the vi is to plot the data of two particular column of table into xy-graph after user selects the data from table....  In this vi , I have used mouse down event for selecting data set so that the color of selected row get changed for user reference.......  the vi is working fine..... 
    My problem is that this vi is a part of main vi.. and I want to use this vi as a subvi.... So, in my main vi I have a table control which is connected as input to the subvi...  I come to know that I need to register event for triggering a event in a subvi.......
    (1) How to register Mouse down event of table control which is on Main Vi to trigger mouse down event of table in subvi.... Another Important thing is... how to link every property of table control of subvi to the table control of main vi... so it just act as single control adapting every property like when user selects a particular row its color changes in subvi....so it should be reflected even if user selects a row in main vi... I mean table control of main vi and subvi should be a single control...is it possible?
    I hope I am clear......Thanks ..

    See the modified version of the VI. I use the 'Point to Row Column' method to get the cell that was clicked on - your method also worked using 'Selection Start' but I thought I'd show you an alternative.
    I've used a single event structure to update two table controls - the point is that if you have the references to the controls you can update the control from anywhere. You can also 'register for events' to allow you to register for events from a different VI (again, using the references) that doesn't have the control on the front panel.
    Couple of things about your VI:
    You don't need to put a wait node if you have a timeout on your event structure.
    You don't need the for loop for the columns/rows - if you look at the help for the 'Active Cell' property you can use a value of -2 for the row/column to select all cells in the row/column.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets
    Attachments:
    Highlight Selected Row in Table Control_lv2009.vi ‏13 KB

  • Mouse down event

    Is there anyway I can keep the control properties as shown in the image attached if I add another event to the same event structure case?
    I currently have an event structure case configured to execute on a mousedown event on a multi column listbox and would like to add a dynamic event to this case also yet keeping hold on the properties show in the image attached..
    Strokes
    Solved!
    Go to Solution.
    Attachments:
    Mouse down event for Multi Column Listbox.PNG ‏2 KB

    sebster wrote:
    Is it not just a case (pun not intended) of right-clicking the event structure and selecting Show Dynamic Event Terminals?
    I understand how to create, register and generate dynamic events but when I add the dynamic event to the event structure it changes (naturally enough) the "CtlRef, Coords,Button" properties to other ones like "time, type, source" etc...

  • Determine cluster element clicked in mouse down event

    Is there anything similar to the ArrElem Property Node, that allows a user to detect which element in an array has been clicked on (mouse down event), but for a cluster?
    It seems the only way I can detect which sub-cluster in my main cluster (see attachment) has been clicked on, is to work out the screen coordinates of each element and compare that to the mouse coordinates of the click - is there any other (better) way?  There's is going to be eight of these main clusters all stacked vertically.
    NOTE: All sub-clusters in the main cluster are disabled so that nothing "pops-up" when the user clicks on an object.
    I was thinking of using an array of clusters, but I need the ability to set various properties (eg. blinking) for each individual object.
    Chris
    Attachments:
    Lane Bays.ctl ‏80 KB

    That's not bad Ben - thanks.
    I made up a quick VI based on your solution which works great if I have one cluster, but if I have eight+ Main Clusters I have to repeat this Event eight+ times - no?  I was wondering if there was a more scalable solution?
    I suppose I could just lump ALL the sub-clusters into one massive Main Cluster, but the text string for that Event is going to be very, very long eg. "Main Cluster.Cluster1"....."Main Cluster.Cluster24": Mouse Down
    Chris
    Attachments:
    Get Clicked Cluster Element.vi ‏13 KB

  • Mouse down event and Click event in List Box Very urgent.

    Hi,
           How can i differentiate mouse down and itemclick in ListBox.Its very urgent.
    Regards,
    Jayagopal.

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

  • Mouse down event reading a string terminal trick

    Hi,
    I wondered why I was getting frustrated entering a pasword that was verified in the mouse down event of the OK button. This is becuase when you click the OK button the entered text is still in the buffer and not copied to the terminal. (Which is more natural than clicking somewhere on the FP first). Note pressing enter or tab gets the string control out of enter text mode.
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event. As this is one of those not obvious but sometimes happens bugs... I have posted for reference for others :-)
    Example attached v8.6.1.
    Attachments:
    TestMouseDownEvent.vi ‏13 KB

    Nick wrote:
    Turns out need update value while typing turned on if you want to gaurantee a correct read of a text input control in a mouse down event.
    AFAIK, "Update value while typing" will trigger only a Value Change event of the Str Ctl.
    Mouse Down event will preceed a Value Change event, if you have both the event cases configured in your code.
    - Partha
    LabVIEW - Wires that catch bugs!

  • PDA Mouse Down Event on Picture Control

    While using the Mouse Down Event on the Picture Control for LabVIEW 7.1 PocketPC PDA, I want to get the xy coordinates on where the user tapped on the pict control. Any ideas or workarounds?
    Robert

    Hello Robert �
    What do you mean by �outputting individual horizontal and vertical components�?
    In the LabVIEW PDA module (and this applies to PocketPC and PalmOS), clusters will not show up in the PDA�s screen. You can use clusters to group controls/indicators but when there is need of sending a new value/showing the value in the screen, the bundle and unbundled functions have to be used, so that you can have individual controls/indicators to pass a new value/see the value, respectively.
    So, from the Coords terminal in a Mouse Down/Up event, you need to unbundle the cluster and create individual indicators for each, the horizontal and vertical position.
    I am attaching an example to show you what I mean. For PalmOS, the same applies.
    H
    ope this helps and if I misunderstood your post, please let me know.
    Have a great day.
    S Vences
    Applications Engineer
    National Instruments
    Attachments:
    PPC_Picture_Events.vi ‏30 KB

  • Graph Mouse Down event issue

    I have an XY graph that is controlled by a mouse down event. When I use the any of the tools like zoom I zoom into an area with a cluster of plots when I go to click on a plot the plot selects but the graph then reinitialises back to its original state.  The VIs I'm using are attached
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere
    Attachments:
    XY graph - closest point.vi ‏24 KB
    scatter plot.vi ‏27 KB

    Yes, all the tools I'm using are from the graph palette. Say if I have 100 points on my graph and I use the graph palette zoom to zoom into an area of points on the graph I select a specific point with the mouse then the graph goes back to its unzoomed state showing the full plot
    Paul Power
    I have not lost my mind, it's backed up on a disk somewhere

  • How Can I Move the Elements by Tap on Touchscreen or Mouse Down Event in Adobe Edge Animate?

    hi , how can i move the elements by tap on tochscreen or mouse down event in adobe edge animate? like action for moving car.

    in my idea is mousedown action or tap on touchscreen plays the role of car accelerator, (gas pedal) when i left click on mouse my car moves forward and the car doesnt move when I dont click or tap.
    Do you have a solution?

  • Pane Mouse Down Event

    Dear sir,
    I am using state machine concept in one of my projects. In my VI i have total 20 controls with different events. I introduced the Pane mouse down event to front panel to validate my input parameters. If i click on controls first it is executing the pane mouse down event and then it is going to particular control event means two events are happening. If i click on Pane only Pane mouse down event is executing. I want to discard the pane mouse down event when i click on the controls.
    Kindly let me know how to implement this kind of events.
    Thanks & regards,
    S Nagaraju.

    Crosspost

  • Mouse over event for every word inside a text?

    I want to do a separate mouse over event for every word inside a text.
    or at least get the string below the mouse cursor.
    any hint?
    henry

    There are no events for it but you can use TextField.getCharIndexAtPoint() to determine the character where the mouse is over, and from there you can work out the word where the mouse is over.

  • Dynamically register "mouse move" event for a VI

    Just as in the example ”Dynamically Register for Events.vi” I want to dynamically register a “Mouse Move” event. I use the “Open VI Reference” to get the reference to the VI and I connect it to the “Register For Events” block just as in the example. When I click the block I get a list of events to choose from, but the “mouse move” event is not one of them. How do I select this event?
    I have got the program running by copying the “Register For Events” block from the example and into my program, but I’m interested to know how this should have been done.
    I use LabView 8.0

    I've had the same problem in LV 8.2.1 and 8.5. I found that NI changed how to access the mouse move... it's now available under "Pane." See my attached example, a modified NI Example.
    Derek
    Attachments:
    Dynamically Register for Events - 8X.vi ‏44 KB

  • How to define mouse-over event for a icon

    Hello,
    I have defined a icon for a panel in my plugin. I want that the icon should be changed on mouse over event.
    The code for icon is given below.
    resource PanelList (kDNDListsPaletteResourceID) {
                        // 1st panel in the list
                        kDNDListsPaletteResourceID,                    // Resource ID for this panel (use SDK default rsrc ID)
                        kIBPluginPluginID,                                             // ID of plug-in that owns this panel
              #if CSVER >= 4
                        kIsResizable,
              #else
                        isResizable,
              #endif
                        kIBClientPluginDNDPanelWidgetActionID,          // Action ID to show/hide the panel
                        kIBClientPluginDNDPanelTitleKey,               // Shows up in the Window list.
                        "",                                                           // Alternate menu path of the form "Main:Foo" if you want your palette menu item in a second place
                        0.0,                                                                                     // Alternate Menu position Alternate Menu position for determining menu order
                        kPlusIconPNGIconRsrcID, kIBPluginPluginID,                                                            // Rsrc ID, Plugin ID for a PNG icon resource to use for this palette
                        c_Panel
    Where should I give the resourceID of the other icon?

    Hi
    First change the name from kPlusIconPNGIconRsrcID to kPlusIconPNGIconIRsrcID
    so "I" will indicate that your icon is inactive
    Create another resource id like:
    #define kPlusIconPNGIconIRsrcID 15
    #define kPlusIconPNGIconARsrcID 15
    Define paths to the icons
    resource PNGA(kPlusIconPNGIconIRsrcID) "../res/icons/PLUS_ICO_23_I.png" // Inactive icon
    resource PNGR(kPlusIconPNGIconARsrcID) "../res/icons/PLUS_ICO_23_A.png" // Active icon
    Regards
    Bartek

  • Mouse released event for scrollbar

    Hello,
    I have a java.awt.Scrollbar component on applet.
    I need to perform actions when user releases the mouse from the
    scrollbar. For example the user presses the mouse on the scrollbars
    tracking rectangle and starts to track. Then the values of the
    scrollbar changes and finally user releases the mouse left button-
    this final event (mouse release) is in my interest. How can i get
    mouse release event from scrollbar? The AdjustmentListener does not
    suit for me because it fires AdjustmentEvents even then when the user
    hasn't released the mouse. I need to perform more actions for every
    scrollbar's change; so my applet i slow at the moment, because every
    "tracking in scrollbar" creates a lot of events before the mouse is
    finally released.
    I added a MouseListener for my scrollbar, but mouseReleased event does
    not work. Can yo help me?
    Thank you, any help would be nice.
    Here is some demo code i tried:
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class Kerimisriba1 extends Applet implements
    AdjustmentListener, MouseListener{
         Scrollbar kerimisriba=new Scrollbar(Scrollbar.VERTICAL, 20, 5, 1,
    100); //algv��rtus, nupu suurus, v�him ja suurim v��rtus
         TextField tf=new TextField(10);
         public Kerimisriba1(){
              setLayout(new BorderLayout());
              add(kerimisriba, BorderLayout.WEST);
              add(tf, BorderLayout.SOUTH);
              //kerimisriba.addAdjustmentListener(this);
              kerimisriba.addMouseListener(this);
              System.out.println("AdjustmentEvent.TRACK="+AdjustmentEvent.TRACK);
         public void adjustmentValueChanged(AdjustmentEvent e){
              //System.out.println(e.getAdjustmentType());
              // tf.setText(kerimisriba.getValue()+"");
         public void mouseReleased(MouseEvent me){
              tf.setText("mouseReleased");
         public void mouseClicked(MouseEvent me){}      
         public void mouseEntered(MouseEvent me){}
         public void mouseExited(MouseEvent me){}
         public void mousePressed(MouseEvent me){}
    }

    I made a screenshot of how the applet works in my computer:
    http://charles.pri.ee/scroll.gif
    As you see in the java console,
    the statement System.out.println("mouseReleased");
    does not executes,
    in my computer.
    I tried this on co-workers comuter with Internet Explorer- there was no mouse release event either.
    I hope i'm not very annoying, but i still need help:)
    I replaced the constructor with init() method:
    import java.applet.Applet;
    import java.awt.*;
    import java.awt.event.*;
    public class Kerimisriba1 extends Applet implements AdjustmentListener, MouseListener{
         Scrollbar kerimisriba=new Scrollbar(Scrollbar.VERTICAL, 20, 5, 1, 100); //algv��rtus, nupu suurus, v�him ja suurim v��rtus
         TextField tf=new TextField(10);
         public void init(){
              kerimisriba.addAdjustmentListener(this);
              setLayout(new BorderLayout());
              kerimisriba.addMouseListener(this);
              add(kerimisriba, BorderLayout.WEST);
              add(tf, BorderLayout.SOUTH);          
              System.out.println("AdjustmentEvent.TRACK="+AdjustmentEvent.TRACK);
         public void adjustmentValueChanged(AdjustmentEvent e){
              System.out.println(e.getAdjustmentType());
              tf.setText(kerimisriba.getValue()+"");
         public void mouseReleased(MouseEvent me){
              tf.setText("mouseReleased");
              System.out.println("mouseReleased");
         public void mouseClicked(MouseEvent me){
              System.out.println("mouseClicked");
         public void mouseEntered(MouseEvent me){}
         public void mouseExited(MouseEvent me){}
         public void mousePressed(MouseEvent me){
              System.out.println("mousePressed");

Maybe you are looking for

  • Oracle 10g RAC using ASM - Storage Issue

    I've an issue related to Oracle 10g RAC. I've 2 node cluster each being Dell 2850 Server with RHEL 4.0 I've EMC CX300 SAN storage with following partitions /orasoft     10 Gb          OCFS2 File system /oracrs          2 Gb          OCFS2 File system

  • Get-Date not calculating as expected

    I am trying to retrieve all the users in a specific OU of recently terminated users (who are temporarily being stored in a quarantine OU to abide by legal department's requirements to keep the mailboxes for 30 days).  Once I retrieve all the users I

  • Trouble with creating an image sequence in QT Pro 7.4.

    I'm having trouble creating an image sequence in QT Pro 7.4(Windows XP). I have a folder containing a JPEG sequence (alternative a PICT-Image sequenz). I Open image sequence, choose the image-frequency and choose the first image, but QT created only

  • Suppressing 'Further Selections' in PNP LDB

    Hi All, Can you please tell me how I can disable the 'Further Selections' button in the PNP logical database? I am unable to find anything suitable in the report category which can disable this feature. Thanks and Regards, Vidya.

  • Force Reporting Services 2012 use https

    I have recently set up a new instance of SQL Server Reporting Services. I have it running and am in the testing phase of the deploy. I have set it up to use SSL and basic Authentication. This all works. The report writer has been able to deploy repor