Is there a way of determining what element in an array is being clicked on?

Hi all.  I would like to setup an event to determine what element in an array is being clicked on/hovered over.  I think I tried this before and found it wasn't working due to limitations of LV 7.0.  If this code already exists, it would be great if I don't have to do a scavenger hunt for the solution.
I think one possibility I nixed was to use the refnum of the elements to determine which one it is.  IIRC, this is not possible because the refnum of the element is for the edit box only.
The second possiblity is to get the on click event, and somehow determine which element in the array it is.  This doesn't sound too difficult as it should be a simple calculation, but may get in to some hairryness based on if the indicies are visible or not, and if I am using a new or old array with new or old control (calc would change based on boarder size of the controls).  I might just simplify it by removing indicies and using older control set which has minimal boarder size.
And just for fun, can I force a tool tip to show up?
Thanks all,
A
Using LV7.0 on WinXP.

blawson wrote:
Been bitten by LabVIEW wrote:
I think one possibility I nixed was to use the refnum of the elements to determine which one it is.  IIRC, this is not possible because the refnum of the element is for the edit box only.
Using LV7.0 on WinXP.
This is indeed possible, at least in the newer versions I use.
Take the array refnum from the click event data terminal and get a reference to the array element.  This refers to the element that was clicked, but you do need to work out how to get the index.  My method is to use property nodes to get the screen position and size of the element and the screen position and size of the array, as well as the array's Visible Index property. For each direction, take the quotient of the relative position of the element (account for padding!) over the size of an element.
I suspect that taking the mouse coords and comparing to the array's sizes in pixels is similar, although I trust my method for events that don't have mouseclicks (what coords does Array:shortcut menu selection(User) return if you used the keyboard?)
Here's an old version I happened to have open.  I've posted about this before, I suspect I have a clearer version in my gallery.  I use this method in my example code contest entry to work out which square of the chessboard is clicked.
Thank you for that one!
I am currently "locked up behind a down-rev fence" (working an old app in an old version) so I had not heard of that.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • How do I determine what element in an array was right clicked on?

    I have an array set up on my front panel. When the user right clicks on an element in that array, I would like them to be able select from 3 different options. I have the shortcut menu working, but I need to know which element in the array the user right clicked on to determine what values to change. How can I get the index of the element?
    Thanks for any help!
    Solved!
    Go to Solution.

    Couldn't you get index values from the array property node?
    Also this doesn't account for if scrollbars are seen or not.  And I usually like to know if my range is valid, because again I could be clicking on a scrollbar, or label and still get the Mouse Down event.
    Here is one I posted a while ago.
    http://forums.ni.com/t5/LabVIEW/Interesting-way-to-detect-array-index-from-mouse-position/m-p/286841...
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • HT201364 Trying to upgrade to OS Maverick. Get message "this computer cannot be upgraded". Checked all tech specs, match requirements. Is there a way to determine what prevents instalation?

    Trying to upgrade to OS X Mavericks. Got message "this computer cannot be upgraded". Checked all tech specs, they match requirements. Is there a way to determine what prevents instalation?

    Check that your computer is compatible with Mountain Lion/Mavericks.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    iMac (Mid 2007 or newer) model number 7,1 or higher
    MacBook (Late 2008 Aluminum, or Early 2009 or newer) model number 5,1 or higher
    MacBook Pro (Mid/Late 2007 or newer) model number 3,1 or higher
    MacBook Air (Late 2008 or newer) model number 2,1 or higher
    Mac mini (Early 2009 or newer) model number 3,1 or higher
    Mac Pro (Early 2008 or newer) model number 3,1 or higher
    Xserve (Early 2009) model number 3,1 or higher

  • In LabVIEW6i, is there a way to make particular elements of an array invisible while the others stay visible (without losing any element's info.)?

    I have an array of clusters. Each cluster pertains to a certain oscilloscope I am controlling. There is another control which specifies which oscilloscopes I have "on".
    If a particular oscilloscope is "on" I want its cluster to be VISIBLE in the array. If a particular oscilloscope is "off" I want its cluster to be INVISIBLE in the array.
    How can I implement this in my program without losing ANY of the info. in my array?

    I suggest to use two arrays; one for user interface holding the ON clusters,
    and one for internal use holding all clusters. The diagram periodically
    updates the internal array with user interface array data.
    By INVISIBLE do you mean "skipped from the array" or displayed as an empty
    placeholder? To hide an OFF cluster you could put in the cluster a flat
    button boolean that is small and transparent when ON and large enough to
    cover the whole cluster area (and other controls) when OFF.
    Jean-Pierre Drolet
    Scientech R&D
    "mcmastal" a écrit dans le message news:
    [email protected]..
    > In LabVIEW6i, is there a way to make particular elements of an array
    > invisible while the others stay visible (without losing any element's
    > info.)?
    >
    > I have an array of clusters. Each cluster pertains to a certain
    > oscilloscope I am controlling. There is another control which
    > specifies which oscilloscopes I have "on".
    > If a particular oscilloscope is "on" I want its cluster to be VISIBLE
    > in the array. If a particular oscilloscope is "off" I want its
    > cluster to be INVISIBLE in the array.
    > How can I implement this in my program without losing ANY of the
    > info. in my array?
    LabVIEW, C'est LabVIEW

  • Is there any way to determine what device text messages are sent from? Do free text messaging apps relate to the apple ID, or the iPod?

    My son had a friend give him his apple ID username and password, and downloaded a texting app. Now, some text messages were sent, and they are both denying it.  Is there any way to know if the text messages came from my son's iPod? The app and texts are deleted, so I can't look at a history to see who typed them.

    I could not find anything one the developer's upport page. Contact the developer and ask
    http://pinger.zendesk.com/categories/2067-need-help-with-textfree

  • Is there a way to determine if an application is 32-bit or 64-bit?

    Is there a way to determine if an application is 32-bit or 64-bit? To be more specific, I want to be able to determine if a 32-bit application is being emulated under WOW64. I'm trying to use the Call Library Function and selecting IsWOW64Process from the Kernel32.dll, but I can't seem to get it to work. I think I may be setting it up wrong. I'm using a constructor node and invoke node for Process and after calling GetProcesses in the invoke node I'm sending that into a For Loop to inspect each process seperately. Inside the For Loop is where I'm trying to use the Call Library Function. From what I've read IsWOW64Process has a Handle as an input and a pointer to a boolean as an output. I may be incorrect in this as I've seen multiple varieties of this call on the internet. I've tried setting this up but I can't seem to get it to work. I'm looking for help on how to correctly use the Call Library Function or if anyone knows a better way to do this I'm open to suggestions. Thank you for any help. 
    Solved!
    Go to Solution.

    Hi klynn,
    I've got a link you might want to check out to make sure that your call function is correct.
    http://msdn.microsoft.com/en-us/library/ms684139%28v=vs.85%29.aspx
    I would also recommend that you check out DLL.VI example in example finder.
    Example Finder > Communicating with External Applications > Using External Code> Integrating DLLs > Call DLL.vi
    Hope this helps,
    Josh L.
    Applications Engineer
    National Instruments

  • Is there a way to tell what settings were used to export a PDF?

    Is there any way to tell what export settings were used to create a PDF? I'm trying to recreate settings used in a previous PDF.

    Most of which are controlled by the Export options used;
    Description
        KK Stevens
    PDF Preset: CC to PDF for KKSPC-Flattened
    Compatibility: Acrobat 4 (PDF 1.3)
    Standards Compliance: None
    General
        Pages: All
        Spreads: Off
        Generate Thumbnails: On
        Optimize PDF: Off
        Create Acrobat Layers: N/A
        Export Layers: Visible and Printable Layers
        Include Bookmarks: Off
        Include Hyperlinks: Off
        Export Nonprinting Objects: Off
        Export Visible Guides and Baseline Grids: Off
        Create Tagged PDF: Off
        Interactive Elements: Do Not Include
    Compression
        Color Images
            Bicubic Downsample at: 300 ppi
            for images above: 300 ppi
            Compression: ZIP
            Tile Size: N/A
            Quality: 8 Bit
        Grayscale Images
            Bicubic Downsample at: 300 ppi
            for images above: 300 ppi
            Compression: ZIP
            Tile Size: N/A
            Quality: 8 Bit
        Monochrome Images
            Downsample at: 1200 ppi
            for images above: 1200 ppi
            Compression: CCITT Group 4
        Compress Text and Line Art: On
        Crop Image Data to Frames: On
    Marks and Bleeds
        Crop Marks: Off
        Bleed Marks: Off
        Registration Marks: Off
        Color Bars: Off
        Page Information: Off
        Page Mark Type: Default
        Weight: 0.125 pt
        Offset: 0.125 in
        Use Document Bleed Settings: Off
        Bleed Top: 0.125 in
        Bleed Bottom: 0.125 in
        Bleed Left: 0.125 in
        Bleed Right: 0.125 in
        Include Slug Area: Off
    Output
        Color Conversion: No Color Conversion
        Destination: N/A
        Profile Inclusion Policy: Don't Include Profiles
        Simulate Overprint: Off
        Output Intent Profile Name: N/A
        Output Condition: N/A
        Output Condition Identifier: N/A
        Registry Name: N/A
    Advanced
        Subset Fonts Below: 1%
        Omit PDF: Off
        Omit EPS: Off
        Omit Bitmap Images: Off
        Transparency Flattener Preset: [High Resolution]
        Ignore Spread Overrides: Off
    Warnings

  • Is there a way to download the Elements 13 that is specifically made for Costco?

    Is there a way to download the Elements 13 that is specifically made for Costco?

    Bob, in addition to what Barbara said, I have an expired trial version of Elements 13 on my computer and I bought the software at Costco so that I could have the serial number to reactivate it at a $30.00 savings over Adobe's price. I was just wondering if there was a way to download Costco's version since I do a lot of printing thru Costco.

  • Is there a way to check what I had purchased from the itune store to match the charges on my credit card, because there is a charge that I do not recognize

    Is there a way to check what I had purchased from the itune store to match the charges on my credit card, because there is a charge that I do not recognize

    http://support.apple.com/kb/HT2727
    Regards.

  • Is There a Way To Show What I've Listened To Recently?

    Is there a way to see what I've listened to say in the lat week?  I can go to Controls and see recent, I can change my views and see (and sort) when songs were "last played" and I can see the top 25 songs in all history played from my library.
    What I'd like to see is what I played in the last week -- what songs I listened to once and which I played over and over.  Like the "Top 25 Most Played" but rather "Top 25 Most Played This Week."
    Any suggestions?

    So-called IMAP email accounts have synchronization in both directions, meaning that if you open an email on one device, it will show open on all other devices as well.  By contrast, so-called POP email accounts do not have this two-way sync and result in the results you are seeing, e.g., emails on multiple devices but only showing opened on one device at a time.
    Unfortunately, unless you can switch your email to an IMAP account, there isn't much you can do about it.

  • Is there a way to tell what is actually being passed to DB from PreparedSta

    Is there a way to tell what is actually being passed to DB from PreparedStatement? What I mean by that is that I have a PreparedStatement that is a simple
    prepstmt = connection.prepareStatement("Insert into table (col1, col2, col3, .... colx) values (?,?,?....?)");
    (there are x ?s)
    I precompile this, and later, when there is a connection I call set all the variables
    prepstmt.setInt(1, someint); prepstmt.setString(2, "\\'" + somestring + "\\'"); etc... prepstmt.executeUpdate();
    I get back an exception thrown by Oracle complaining that one of my values is too large for the column (but doesn't say what column/value).
    So I made a string that contains what ought to be the same query
    String debug = "Insert into table (col1, col2, col3, .... colx) values (someint,'somestring',etc....someotherint)"; System.out.println(debug);
    I give the printed out line directly to Oracle through SQLScratchpad and it works just fine in there and I can confirm the row has been inserted. Nothing is too big.
    Is there a way to look at what the PreparedStatement actually has as values in there? I found I could look at the original statement (the one with the ?s) if I expand the prepstmt object in the debugger's (Eclipse) view, but nothing to show me where the values were filled in.
    Thanks for any help you can give me.

    Hrm, I'm suspecting that perhaps it has to do something with setting CHAR fields. Some of the fields in this table are CHAR but I don't see a call in my PreparedStatement that can set a char, only a String, so that's what I've been using, but it may be that that's not the right thing to do. I'm running Java 1.5.10, and looking through the API there doesn't seem to be anything specifically for char.

  • Is there a way to view what is running on the Q10?

    I know about closing apps open in the HUB, but is there a way to see what processes or programs are running on a Q10? I am watching one of our phones drain slowly just from sitting. Only thing running is our phone network. Maybe its syncing too often with our server? I am not sure how to see that to check. Other than that, the phone is passive. Any suggestions?

    Are you a developer?
    On BB10 v10.2 a list of running apps can be seen under the settings,
    If you can run Momentics then it is possible to use the diagnostic capabilities to watch what processes are running.
    If not then there are some apps on the market which can monitor battery drain for you.
    If you've been helped click on , if you've been saved buy the app.
    Developer of stokLocker, Sympatico and Super Sentences.

  • Is there a way to tell what folders/images I placed in my trash today?   specifically by date of entry into trash?

    I inadvertently deleted 6 folders from picasa which also deleted them from my Mac.  i have so many items in my trash that I do not know which they were....is there any way to track what items I placed in my trash only on today's date?  since I have no clue what they were specifically.

    which also deleted them from my Mac.
    By the way, the items are not deleted until you empty the trash - which you should do occasionally because they all take up room on your hard drive. I don't know of a way to do exactly what you want - you can try looking at your trash in column view and it will show you the last time you modified or opened a file - that might give you an idea.

  • Is there any way to determine if a link is a book mark or hyperlink in java script

    Is there any way to determine if a link is a book mark or hyperlink in java script
    Sub Problem:
    I am making an array of quads of all the hyperlinks in a document. I would like to automatically skip over all the bookmarks in the starting pages of a document and just get the links of the hyperlinks.
    Now I have to manually set the pages that contain bookmarks so they are not included in the array.
    Is there any way to determine if a link is a book mark or hyperlink in java script?
    It would help automate the conversion I need below
    John
    Main Problem:
    I have been working on converting a set of pdf files with 1000’s of hyperlinks like www.site.com\folder1\file1.pdf#page=10
    To jump to a local copy of the files with a relative type link
    ../folder1/file1.pdf and then go to the proper page.
    I have found that it can be done manually by changing the hyperlink to a javascript
    var otherDoc = app.openDoc('../folder1/file1.pdf', this);otherDoc.pageNum = 10 - 1;
    and setting each destination file with a disclose()=true;
    Based on the help so far that java script cannot access the hyperlink value in a link
    See: http://forums.adobe.com/thread/1039908?tstart=60
    I have resorted to the following plan using acrobat javascript, an external keyboard macro recorder and excel in combination to get around the problem
    Four folder level acrobat javascripts with “buttons”
    One to get all the link quads in an array, in the pdf and report the total number
    The second creates a form field in the far corner of the first page and moves there.
    The third jumps to each link found by creating a form field just to the left of the link and zooms in so it can be selected by a “mouse click” from the keyboard macro recorder 
    The forth deletes the form field
    The keyboard macro recorder runs javascript 2 and then 3 then clicks on the link just to the right of the middle of the screen and uses keys to get to the advanced editing to get to edit the hyperlink .
    The hyperlink is then copied to excel where it is converted using string functions to the needed javascript text to be copied back.
    To the acrobat file into a java script (after deleting the hyperlink)
    Rinse/lather/repeat
    I have been able to convert about 150 links an hour.
    Better then hand typing, but not like having java access to the links.
    I am looking to improve the solution

    thanks for your help.
    I may have been confusing a "acrobat bookmark" and a bookmark in a word file that is converted to a pdf and ends up being a
    link of the type:
    "Go to a page in this document"
    which I do not want in my array vs
    a link of the action type:
    "Open a web link"
    Which I do want
    John
    My code, note how I have to skip pages with "Go to a page in this document" links depending on the document, I would like to use the same code for each document and skip over the "Go to a page in this document" links :
    global.ilinkindex = 1; 
    global.aLinkquads = [ [0, 1, 1, 0, 0],
           [0, 0, 0, 0, 0] ];
    function GetLinkArray()
    global.ilinkindex = 1;
    var iTotalLinks=0;
    // for ( var p = 0; p < this.numPages - 8 ; p++)                   // end before bookmarks for each page of the file x.pdf
    //  for ( var p = 0; p < this.numPages; p++)                     // for each page of the file
    for ( var p = 23; p < this.numPages; p++)                     // start after bookmarks for each page of the file y.pdf
      var cropbox = this.getPageBox("Crop", p);
      var alinksonpage = this.getLinks(p, cropbox);            // get array of links on page
      for ( var ll = 0; ll < alinksonpage.length; ll++)
       var linkquads = alinksonpage[ll].rect;     // get link Quads
       linkquads[4] = p;          // add page number to link Quads array
        global.aLinkquads[global.ilinkindex] = linkquads; // add quads to global link Quads array
        global.ilinkindex++;
    iTotalLinks = global.aLinkquads.length - 1;
    global.ilinkindex = 1;
    app.alert("Number of Links in Document is " + iTotalLinks );

  • Is there a way to determine which rows are inserted in JDT1 table by the system automatically?

    Hi,
    Is there a way to determine which rows are inserted in JDT1 table by the system automatically? Example, many GLs which are mapped in GL Account Determination, like Foreign Exchange Gain / Loss, Rounding Account, etc. are inserted by the system automatically in the Journal Entry on various scenarios, like during Incoming Payment, etc.
    Which SQL query can give me those rows? Basically the WHERE condition should be based on which column or multiple columns in JDT1 table?
    Thanks.

    Hi Rajesh,
    I'm not entirely sure but I think the TransId is the same in the header that belongs to the transaction.
    OINV.TransId = JDT1.TransId
    Best regards,
    Pedro Magueija

Maybe you are looking for

  • Can't update iPod or transfer music anymore!

    I have an issue that seems a little simialr to Dennis Miller's post...since updating to the most current iTunes, it now does not copy all my music to my iPod, even music I just purchased, and actually removes music that I had on there previously! It

  • HT1918 How do I add a second credit card to my account?

    I want to split my purchases to a private account and a business account. It seems like Apple only accepts 1 credit card...

  • Trade-ins down and value dived

    So yesterday I went in to my Plover BB with a stack of games to trade in only to be told they were down for the day and to come back tomorrow (today). Of course, now the game value has plunged, a difference of $60-$70 for my trade! I assume there is

  • Vendor is not defined for purchase organization

    Dear Friends, I am receiving this message : "vendor is not defined for purchase organization " What has to do in the system to avoid this message ? Regards Marco

  • FXO-to-FXO

    Hello, I am getting my FXO port (2600 with 12.2(11)T) busy after the phone got on-hook.I've read about the disconnect problem, but I can't do anything using HICOM-100 like power-denial or disconnect tone. Some suggestions ? I have another FXO port (1