How can I determine the position of the mouse in a 2D image control

I have an app where I would like the user to be able to interact with objects in a 2D image control with the mouse.  To do this, I need to translate between the screen coordinates, which are transmitted with the events of mouse and in the control of 2D image.

The problem that I am running is that I can't find a way to determine the screen coordinates of the top left corner of the drawing/client of the 2D image control area.  I tried to use the 'Position' of the image control property, but this results in a mismatch because of the difference between the upper-left corner of the image control (including the label, etc.) and the upper left corner of the drawing area.  See attached VI.

Does anyone know how to get the coordinate of the screen from the corner of the drawing of the control of the photo area?

Mark Moss

I tend to use the mouse in the image control property to get the position.  Deals with things like the passage of origin for you.

Tags: NI Software

Similar Questions

  • How can I determine the number of contacts that I have

    How can I determine the number of contacts that I currently have on my iphone

    I don't know of a way on the iPhone, but if you have a Mac, you can go to the Contacts (platform) app and scroll to the bottom where you will find the total.

    Same for iCloud.com on your browser, go to the app, scroll down.

  • How can I determine the size of the files and photo albums?

    How can I determine the size of the files and photo albums?

    It is not really in any way, nor is it necessary-what you trying to accomplish?

    LN

  • How can I determine the version of Toshiba Assist?

    How can I determine the version of attribution that is installed on my Satellite X 200 with Windows Vista Premium SP 1AA. Operating system?

    Go to the control panel and start the option programs and features.
    After full load, you will find listed Toshiba Assist it.
    Click on it and on the bottom, you will find information about the version of publisher, size and product.

  • How can I increase the resolution (DPI / PPP) an image scanned on my iMac?

    How can I increase the resolution of a scanned image. I am currently using a new all-in-one Photosmart HP 5512, I installed everything to the natural drivers have a usp cable connecting the PRINTER to my iMac. I'm on OS 10.7.4.

    The HP icon utility allows me only increase the size of the file (image quality) not the PPP/CIO

    Thanks in advance for any help

    Hello

    You can change the resolution using the application from HP as follows:

    Click HP scan at the top and then click on Preferences.

    In the launch windows, select the required resolution.

    Close the preferences window and perform analysis.

    Kind regards

    Shlomi

  • How can I disable the mouse pad when you use a mouse plug-and-play?

    How can I disable the mouse pad when you use a mouse plug-and-play? I tried to disable the driver, and nothing works.

    Hello

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • Do you know what does DPI mean? How can I increase the resolution of a TIFF image at 300 DPI for shipment to a Publisher?

    Is anyone here know what DPI?  How can I increase the resolution of a TIFF image at 300 DPI for shipment to a Publisher?

    If the resolution is already less than 300, may not increase to make it higher. You can only do low.

    =====================================
    Yes, you can increase the DPI value.

  • How can I activate the mouse 4000 magnifying glass

    How can I disable the mouse 4000 magnifying glass? Dog was lying on the keyboard and access the loupe. So, maybe there need help turning off the Magnifier on the Comfort Keyboard 4000?

    To get out the magnifying glass, press the Windows logo key + Esc

  • How can I get the code to save Pixillion Image converter? [was: glory614]

    How can I get the code to save Pixillion Image converter

    It's not Adobe software.

    You will need to go to the manufacturer's Web site and get your code from them

    http://www.nchsoftware.com/ImageConverter/

  • How can I determine the RAM bus speed?

    Hello

    I installed the new 4 GB RAM replacing the previously installed 3 GB of RAM. The previous 3 GB of RAM has the 667 MHz bus speed (I found it in the user manual). The new 4 GB of RAM, the seller told me that has the 800 MHz bus speed. Now, I want to be sure that the seller does not deceive me, and he gave me the speed of 800 MHz RAM bus. How can I determine my installed RAM bus speed? My system configuration is the following:

    Windows 7 Ultimate 64 bit

    2.1 GHz Core2Duo

    4 GB OF DDR2 RAM

    Intel GMA 4500MHD

    Model: Acer Aspire 5738

    I have two modules of DDR2 soDIMM, previously, I had a 1 GB DDR2 667 MHz + a 2 GB DDR2 667 MHz RAM = 3 GB DDR2 667 MHz RAM (in my manual of the system provided by Acer)

    Now, after replacing, I have two 2 GB DDR2 800 MHz RAM = 4GBD DDR2 800 MHz RAM (as the salesman told me and I saw written in the package when he was unpacking and installation)

    How can I determine my RAM bus speed and be confirm that I really learned the 800 MHz? Please someone help me with this. Thank you.

    Four ways I see real quick:
    1 - the label on the RAM (assuming that it is there, and this truct you he has not changed it).
    2 - install the CPU-Z.  It will be listed in the memory tab.
    3 - install Belarc Advisor.  It also lists only (as well as much more information on the system.)
    4 take a look at the POSITION of the screen when the system boots - he must view RAM info.

    All the foregoing, guess however that isn't only MHz 800 RAM installed, but that the system is actuallyrunning at 800 MHz.
    Here, CPU - Z is the best choice, because it will give you the actual manufacturer for RAM; You can use it to find the specifications of the manufacturer.

    HTH,
    Chris

    [If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message.] [Marking a post as answer, or relatively useful, you help others find the answer more quickly.]

  • How can I determine the model of my air to buy a new drive if my oem drive failed?

    My air drive is dead and I need to order a new drive.  How can I determine my air without the drive model?

    Thank you

    C

    I guess you could always turn inside and read the model number is printed on the bottom...

  • Error-50352 DAQmx: How can I determine the maximum size of the buffer?

    I use a card PCI-6259 with DAQmx (version 9.0.2) library and I get the error "-50352: memory cannot be allocated" whenever I try to make my record too long. Here are a few terms that I found:

    1 channel of AI, 1Msample/s: 7.71 sec max

    1 channel AO, 1Msample/s: 7.71 sec max

    1 channel of AI, 500ksample/s: 15,4 sec max

    2 channels of AI, 500ksample/s: 7.71 sec max

    1 HAVE, AO, 1Msample/s 1-channel: 5.6 sec max

    IF I can't acquire more 7.71 Msamples in a single task, be it in most cases, or AO. When you mix tasks HAVE and AO, this limit seems to be decreasing. This happens with a freshly started application, so I don't think that it is a question of compensation task.

    What is a physical boundary with the device? (And if so, how can I determine this limit?)

    My impression is that the device uses DMA to transfer samples to the system memory, which there are plenty - I can easily allocate more than 400 MB of contiguous memory in the same application.

    Hi Luke,.

    The amount of RAM your system installed?

    What operating system do you use? If it is a 32-bit operating system, using 3 GB or increaseuserva? These parameters have a compromise: they reduce the size of the kernel virtual address space. This increases the probability of DAQmx will succeed to allocate memory but do not reach the mapping in the kernel virtual address space.

    Your system has all the devices with very large memory mapped I/O beaches, such as a video card with a large amount of memory on-board? On a 32-bit operating system, this can reduce the size of the virtual address space of the nucleus by a significant amount.

    Brad

  • How can you determine the absolute path to a NetStream object created dynamically?

    We strive to implement a video captioning with a freeware component, ccforflash. This requires us to provide an absolute path or relative to our NetStream. How can we determine this path in Flash CS5 AS3?

    CCforFlashCS5 documentation:

    2. objects "name and path.

    Type the name and the path.  It is the name of the instance of the object with which CCforFlashAS3 will synchronize. It must be spelled correctly, since CCforFlashAS3 queries the object with this name for the synchronization information to synchronize subtitles. The path must also be included; be compared to the CCforFlashAS3 (i.e. this.parent) component or the absolute path of the main floor of the film (root)".

    I guess I understand your problem and accepts only a great way to identify a path to something compared to doing AS3 AS2.  I'll see if I can raise the interest of someone else in your ad that is a detective better than me.

    But if I can get stoopid for one minute and suggest trying something (I would try it)... If you have access to the code where is instantiated the NetStream object, just after he is given life, assign the instance to a variable, you have in the main timeline and use this variable (and the root timeline or a 'this' - reference database for path requirement) for your CCforFlashCS5 needs.

  • How can I determine the type of image to be used before loading an image?

    I'm developing an application using VB 2005 which measures two 8-bit or 16-bit image files. When I saw the picture, I find that I have to set the type of image the image buffer before playback of the image in it. For example, if I read a 16-bit image in a buffer of 8 bits, the image is truncated. I guess I could read the image in a 16-bit buffer and retype it if the pixel values are less than 255.

    Is there a better way to do it? Can I determine the number of bits of an image before loading in a buffer?

    Thank you!

    Hi Steverino,

    Olivia is incorrect... VDM has a function called GetFileInfo which does just what you want. It only reads the header of the image but does not load the entire image in memory. It will give you various properties such as the bit depth.

    I think that on the new .NET support, there can exist here: NationalInstruments.Vision.Analysis.Algorithms.GetFileInformation.

    Thanks to the ICB and our legacy of .NET support, it's probably a similar name.

    Eric

  • How can I determine the order of firstname and lastname?

    I get the name of the contact with the following code.

    BlackBerryContact contact = ...
    String[] name = contact.getStringArray(Contact.NAME, 0);
    String firstName = name[Contact.NAME_GIVEN];
    String lastName = name[Contact.NAME_FAMILY];
    

    But I can't determine the order - "full name, first name" or "first name, last name.
    With my Bold 9700, it can be configured in the Options > language and text input > name display, but I couldn't find a way to get the setting from java code.

    Please help me.

    There is no API for this setting. If you see as important, you could offer it to your own parameters, otherwise just go with the standard.

  • How can I determine the specified VO is updated or not?

    All the

    There are several of your in my AM and the method this.getDBTransaction () .isDirty () returns the true value once the VO has changed but not validation. How can I understand the specific vo to see if it is replaced. I want to add some customization to the specific vo logic in the beforeCommit() method in AM.

    Gerry,

    There is no direct way to do this for a VO.

    For VO lines, however, you can call getEntities() and loops through the entities returned asking them getEntityState().

    John

Maybe you are looking for

  • Re: End of the data partition

    What is the purpose of the data partition? I see that he holds the files for HARD drive recovery, and I guess the hidden restore pictures are listed also, does it to other purposes? The reason why I ask is that I want to dual boot with Linux and I wo

  • Anyone having problems with iOS 9.2.1? Storage problems, apps not working?

    Anyone having problems with iOS 9.2.1? Storage problems, apps not working?

  • No sound on my hp laptop 2000

    I have no sound on my laptop. Ive tried to restart, ive run my cleaners. IM at a loss for what to do next. I have a laptop hp with windows 2000 8. my audio worked perfectly well a few days ago. I havn't made any changes to my computer. It has just st

  • How to get all the programs in the Start Menu is displayed as a cascading menu

    Is there a legitimate way to get the menu all programs in the Windows 7 Start Menu to display a menu cascading (WinXP style)? I've seen many references to various malicious programs to download from the internet who hack into the start menu to provid

  • Sysconfig Startup tab

    Hi, how can I add items to the "Startup" tab in the System Configuration? Thanks for all the suggestions!