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.

Similar Messages

  • 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

  • When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Websites remembering you and automatically log you in is stored in a cookie.
    *Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    *Tools > Options > Privacy > Cookies: Exceptions
    In case you are using "Clear history when Firefox closes":
    *do not clear Cookies
    *do not clear Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

  • How can I determine what computers are home sharing??

    How can I determine what computers are home sharing??

    Launch iTunes on the computers you're interested in. Check in the "Advanced" menu.
    If "Turn on Home Sharing" is listed as an option, the iTunes library that you have open is not Home Sharing.
    If "Turn off Home Sharing ([accountname]) is listed as an option, the iTunes library that you have open is Home Sharing.

  • How Do I Determine What WUDFHost.exe is Doing and What It's Associated With?

    Since around the time of the installation of Win 8.1 Update 1 I've had a couple of new WUDFHost.exe processes that run all the time.  Today I saw one of them accessing data on a backup volume, which I assume was some kind of maintenance
    activity - but I'm not sure.
    My question is this:
    How can I determine what these processes are doing, why they're here, and what they're associated with (i.e., what feature or device has caused them to be running).  I don't suspect them of causing a specific problem - my system's running fine
    - but I want to know why they're running.
    Process Explorer shows them to have been started by these two command lines:
    "C:\Windows\System32\WUDFHost.exe" -HostGUID:{193a1820-xxxx-xxxx-xxxx-be817523f6aa} -IoEventPortName:HostProcess-ae18c507-xxxx-xxxx-xxxx-ce7a84b73fb2 -SystemEventPortName:HostProcess-76f2d2b0-xxxx-xxxx-xxxx-25de41b0af65 -IoCancelEventPortName:HostProcess-52988628-xxxx-xxxx-xxxx-54018fc05bec
    -NonStateChangingEventPortName:HostProcess-c981e37e-xxxx-xxxx-xxxx-a8bd344c5791 -ServiceSID:S-1-5-80-dddddddddd-dddddddddd-dddddddddd-dddddddddd-ddddddddd -LifetimeId:8472fac1-xxxx-xxxx-xxxx-680353bbbc7f -DeviceGroupId:WpdFsGroup
    "C:\Windows\System32\WUDFHost.exe" -HostGUID:{193a1820-xxxx-xxxx-xxxx-be817523f6aa} -IoEventPortName:HostProcess-af2e6f5b-xxxx-xxxx-xxxx-39a9cc13f6d4 -SystemEventPortName:HostProcess-45e89330-xxxx-xxxx-xxxx-9e76811e37aa -IoCancelEventPortName:HostProcess-3007f65c-xxxx-xxxx-xxxx-c6cdd5617944
    -NonStateChangingEventPortName:HostProcess-efca4373-xxxx-xxxx-xxxx-cfc06fd83dee -ServiceSID:S-1-5-80-dddddddddd-dddddddddd-dddddddddd-dddddddddd-ddddddddd -LifetimeId:f4aa6ef0-xxxx-xxxx-xxxx-d16f4eefddb2 -DeviceGroupId:WudfDefaultDevicePool
    As you can see, their function isn't obvious from what's showing.
    What tools can I used to delve further into what these are and why they're here?
    Thanks for any help or wisdom you can offer.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

    seems to me that you're about to dive down a rabbit hole for this one..
    http://en.wikipedia.org/wiki/User_Mode_Driver_Framework
    http://msdn.microsoft.com/en-us/Library/Windows/Hardware/ff557565(v=vs.85).aspx
    http://blogs.msdn.com/b/iliast/archive/2009/06/09/umdf-debugging-videos.aspx
    might need to ask more in the driver dev forums?
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • How can I determine what is the minimum SCN number I need to restore up to.

    Say if I have a full database backup, I know I have file inconsistency, but I want to know what is the minimum time or SCN number a need to roll forward to in order to be able to open the database?
    For example: I do a database restore.
    restore database ;
    RMAN> sql 'alter database open read only';
    sql statement: alter database open read only
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03009: failure of sql command on default channel at 03/16/2009 15:00:04
    RMAN-11003: failure during parse/execution of SQL statement: alter database open read only
    ORA-16004: backup database requires recovery
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I need need to apply archive log files. All references I find for ORA-00194 state the solution is to "apply more logs until the file is consistent " But "HOW MANY LOGS", or more apporaite up to what time or SCN? How does one determine what TIME or SCN is required to get all file consistent?
    I thought this query might provide the answer, but it doesn't
    select max(checkpoint_change#)
    from v$datafile_header
    MAX(CHECKPOINT_CHANGE#)
    7985876903
    --It applies a bit more redo, but not enough to make my datafiles consistent.
    recover database until SCN=7985876903 ;
    Starting recover at 03/16/09 15:04:54
    using channel ORA_DISK_1
    using channel ORA_DISK_2
    using channel ORA_DISK_3
    using channel ORA_DISK_4
    using channel ORA_DISK_5
    using channel ORA_DISK_6
    using channel ORA_DISK_7
    using channel ORA_DISK_8
    starting media recovery
    channel ORA_DISK_1: starting archive log restore to default destination
    channel ORA_DISK_1: restoring archive log
    archive log thread=1 sequence=18436
    channel ORA_DISK_1: reading from backup piece /temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1
    channel ORA_DISK_1: restored backup piece 1
    piece handle=/temp-oracle/backup/hot/p1/20090315/hourly.arch_P1_47353_681538638_1 tag=TAG20090315T041716
    channel ORA_DISK_1: restore complete, elapsed time: 00:02:26
    archive log filename=/u01/app/oracle/flash_recovery_area/P1/archivelog/2009_03_16/o1_mf_1_18436_4vxd81yc_.arc thread=1 se quence=18436
    Oracle Error:
    ORA-01547: warning: RECOVER succeeded but OPEN RESETLOGS would get error below
    ORA-01194: file 1 needs more recovery to be consistent
    ORA-01110: data file 1: '/u01/oradata/p1/system01.dbf'
    I've discover I need to apply archive logs until this query reports all datafiles as FUZZY=NO , but this only works by guessing at some time periord to roll forward to, then checking the FUZZY column, and try again. Is there a way to know, I have to roll forward to a specific SNC in order for all my datafiles to be consistent?
    select file#
         , status
         , checkpoint_change#
         , checkpoint_time
         , FUZZY
         , RECOVER
    ,LAST_DEALLOC_SCN
    from v$datafile_header
    order by checkpoint_time
    Thanks,
    Jason

    The minimum point in time is the time when the last backup piece for datafiles in that backup was completed.
    Your alert.log should show the redo log sequence number at that time.
    You can query V$ARCHIVED_LOG and get the FIRST_CHANGE# of the first archivedlog generated after that backup piece completed.
    A
    LIST BACKUP;in RMAN should also show you the SCNs at the time of the backups.
    You can also query SCN_TO_TIMESTAMP -- eg
    select timestamp_to_scn(to_timestamp('15-MAR-09 09:24:01','DD-MON-RR HH24:MI:SS')) from dual;will return an approximation of the SCN.
    Hemant K Chitale
    http://hemantoracledba.blogspot.com
    Edited by: Hemant K Chitale on Mar 17, 2009 9:41 AM
    added the LIST BACKUP command from RMAN.

  • How do you determine what shows are in free video on demand?

    How do you determine what to include in the free on-demand shows?  The Mentalist was always there before but is no longer.  This is especially important for shows like the Mentalist and The Good Wife which come on Sunday nights after sports events.  Even if I set my DVR to record 60 minutes over it doesn't always catch the entire episode.  Would also like to see Person of Interest  there.   And last but not least, you should have a way for people to access netflix or other services from your service.  

    If you go to BROWSE then the FREE folder you will find that everything in there is free viewing. If you go elsewhere and try to watch a paid show, you will get a prompt asking you to purchase. It also shows the amount of the movie before purchase.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • How do I determine what the default font for equations is?

    In the Equation Fonts dialog box, we can set the font of Functions, Numbers, Strings, and Variables.  In those dropdown lists, there is a Default (para) Font choice.  How do I determine what font that is?  What paragraph tag is associated with an equation?
    With all the choices set to default, numbers types in the equation look similar (but not exact) to the Symbol font, but of course typing letters in the Symbol font reveal greek characters.  So is it some derivation of Symbol?

    Thanks.  That .cfg file shows Times Regular for the following characters, but none of these characters are the regular alphabet, (are they?) so there must be yet another place?
    mathchar.cfg    53      < plus        2b Times Regular>
    mathchar.cfg    54      < equal       3d Times Regular>
    mathchar.cfg    70      < gg          c8 Times Regular>
    mathchar.cfg    71      < ll          c7 Times Regular>
    mathchar.cfg    93      < fact        21 Times Regular>
    mathchar.cfg    94      < dagger      a0 Times Regular>
    mathchar.cfg    98      < minus       d0 Times Regular>
    mathchar.cfg    106      < uequal      3d Times Regular>
    mathchar.cfg    112      < diff        64 Times Regular>
    mathchar.cfg    116      < ucomma      2c Times Regular>
    mathchar.cfg    117      < semicolon   3b Times Regular>
    mathchar.cfg    118      < optotal     64 Times Regular>
    mathchar.cfg    127      < power       5e Times Regular>
    I've determined (by comparing equation string to body string visually) that Times is in fact the font being used.  I just don't see yet how that gets determined.  Any further thoughts?

  • How do I determine what URL to use when launching to display a RH10 .htm page?

    Hello,
    We are implementing RoboHelp 10 for our online documentation and are sourcing it from Framemaker 11. I am trying to determine exactly what URL information the developers need to build for the launch to the specific IBM System i screen. Is anyone launching RoboHelp from a backend ERP system? If so, how did you determine what level to use when building the URL for that page?  Thanks for any assistance you can provide.

    It depends on whether you just want to open the help at the default topic or open context sensitive topics.
    Both methods are described in Calling Help on my site and there is more good information at http://www.wvanweelden.eu
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • How do i determine what the "other" usage is on my iPad (3.5 gig)

    how do i determine what the "other" usage is on my iPad (3.5 gig)

    Hey there, I seem to have an issue with the 'other' usage thing.
    On my computer and ipod, it shows like this:
    when I dont even have more than 2+GB in music and less than 1gb in apps and pictures.
    I am on iOS5.1.1 because I had many problems with the Wi-Fi bug for iOS6 (no, it didnt fix for me with 6.0.1)
    I am very frustatred because I cant even sync music anymore. AndI dont want to do a reset because it takes me 3+ hours to transfer my music.
    any help}?

  • I am planning to switch to the "iPhone for Life Plan" with unlimited data.  How do i determine what the balance is on my equipment installment plan?

    I am planning to switch to the "iPhone for Life Plan" with unlimited data.  How do i determine what the balance is on my equipment installment plan?

    Yes I am considering switching from the VZ Edge to Sprint iPhone for Life plan.
    Thanks,
    Adrian
    >> Personal information removed to comply with the Verizon Wireless Terms of Service <<
    Edited by:  Verizon Moderator

  • How do I determine what 4 computers are authorized to download content from my account?

    How do I determine what 4 computers are authorized to download content from my account?  I need to manage what computers are authorized.

    You can only see a count of how many computers are authorised, you can't see a list of them. If the computers are also associated to your account (e.g. you've used iTunes Match, automatic downloads, or redownloaded past purchases on them) then they might also show in the 'manage devices' section of your account on your computer's iTunes (Store > View Account menu option): Manage your associated devices in iTunes - Apple Support
    You can also, once every 12 months, log into account on your computer's iTunes (Store > View Account) and deauthorise all computers and then reauthorise the computers (which you can only do directly on them) that you still have and need.

  • How do I determine what version of Apache I'm using?

    How do I determine what version of Apache, 1.3 or 2.0, I'm using?

    If you're using the stock Apache, it's 1.3 on regular OS X. I think it's Apache 2 on OS X Server, but I'm not certain.
    If you're asking because you've installed Apache 2, but want to make sure it's the one that's running and not the stock Apache, one way to tell is to examine the headers it returns. This Terminal command will show your headers (just enter it and hit the "return" key):
    <pre class="command">curl -I http://localhost</pre>
    Here's what I get:
    <pre class="command">HTTP/1.1 200 OK
    Date: Mon, 02 Jul 2007 13:09:06 GMT
    Server: Apache/1.3.33 (Darwin) PHP/5.2.0 mod_perl/1.29
    Content-Type: text/html</pre>
    As you can see, I have the stock Apache, but I've installed PHP5.
    charlie

  • Mac shut down due to problem; I rebooted fine. how do I determine what the problem was?

    mac shut down due to problem; I rebooted fine. how do I determine what the problem was?

    When shut down and rebooted, the Mac OS X does background maintenance on the system. That can solve minor issues.
    Beyond this, it is a good idea to run Disk Repair yourself just to make sure.
    Reboot with the option key held down. On the screen that comes up select the Recovery disk icon and Continue.
    On the next screen Clcik Disk Utility and Continue.
    In DU, in the list on the left select the drive to be repaired - click the item that is indented to the right, not an an item whose name starts on the far left.
    Click First Aid, then Repair Disk.
    After that is done, quit DU and restart as usual.

  • How do I determine what generation my ipod is

    how do I determine what generation my ipod is?

    Append the last three characters of its serial number to http://www.everymac.com/ultimate-mac-lookup/?search_keywords= and load the page.
    (97405)

Maybe you are looking for

  • Third Party Processing in SRM 4.0

    Hi, We are working on Third Party Processing in SRM4.0 & SAP R/3 4.7. We were able to transfer the Third party Requisition from Backend R/3 to SRM 4.0 Sourcing Cockpit as an External Requirement. When we try to process the Third Party External Requir

  • Rebate accrual up to certain quantiy

    Hi, We have an requirement where in rebate needs to be accrued only for certain quanity. For Eg:- Material A, Quantity is 1600 PCs, so rebate should accrue for all customers for specific materail  only for 1600 pcs . Once system reaches 1600 pcs accr

  • Cannot Scan from Scanner

    I cannot scan documents from my scanner into Adobe Acrobat Pro 9.3.2.  The process only works once.  Then if I run a repair of Adobe Acrobat, I scan do another scan, and so on.  Just one scan per repair.  The error is "The program can't start because

  • Sample Portlet

    Hello, I am looking for a sample JSR 168 portlet that will poll a content server and convert the returned xml output to html using xslt. Please share if there is any such sample. Thanks, mk

  • PRI to VOIP point to point span requirement

    Hi all... I am planning a basic voip link and have a hardware question...I have searched and read the info from cisco on some similiar setup's..Here is what I am planning... A pri to voip to pri span and looks like this.. NortelOpt81<--->PRI<-->3640<