Dragging points in the chart with the mouse

Hello

I would like to ask if any Graph control NOR for .net enables drag and shift the points on the graph with the mouse.

Here's the simple example to describe what I'm thinking:

If there is no such functionality, can be implemented and if it cannot, in such a way?

a.h.

Hello

It seems that you may be heading in a different direction, but I thought I would offer my 2 cents.  One possibility would be to update the point in the data table based on the position of the mouse in the MouseMove callback and replot then data.  Although it may not fully satisfy all your needs, below is a simple example of how to proceed.  If all goes well, it may be of some use to you.

partial class Form1: Form
{
xData private Double [] = {2, 4, 7, 8, 5, 4, 2};
Private Double [] yData = {5, 8, 9, 6, 3, 2, 5};

private int pointIndex;

public Form1()
{
InitializeComponent();
}

private void Form1_Load (object sender, EventArgs e)
{
scatterGraph1.PlotXY (xData, yData);
}

Private Sub scatterGraph1_MouseDown (ByVal sender As Object, MouseEventArgs e)
{
xPoint double;
Double yPoint;

scatterPlot1.InverseMapDataPoint (scatterGraph1.Bounds, Object, out xPoint, out yPoint);
This XYCursor is transparent in color and it is
SnapMode has the NearestPoint value
xyCursor1.MoveCursor (xPoint, yPoint);
Cursor.Current = Cursors.Hand;
}

private void scatterGraph1_AfterMoveCursor (object sender, NationalInstruments.UI.AfterMoveXYCursorEventArgs e)
{
pointIndex = xyCursor1.GetCurrentIndex ();
}

Private Sub scatterGraph1_MouseMove (ByVal sender As Object, MouseEventArgs e)
{
xPoint double;
Double yPoint;

If (get_Cursor is Cursors.Hand)
{
scatterPlot1.InverseMapDataPoint (scatterGraph1.Bounds, Object, out xPoint, out yPoint);
xData [pointIndex] = xPoint;
yData [pointIndex] = yPoint;
scatterGraph1.PlotXY (xData, yData);
}
}

Private Sub scatterGraph1_MouseUp (ByVal sender As Object, MouseEventArgs e)
{
Cursor.Current = Cursors.Default;
}
}

NickB

National Instruments

Tags: NI Software

Similar Questions

  • I've upgraded to window 10, but not happy with windows 10 I returned to windows 7, but I'm unable to log on to the pc. the pointer of the mouse and keyboard are frozen device, even in safe mode.

    After the upgrade to windows 10, I loved not the style was thus to Windows 7, but I have not been able to log on the PC since. He's going through commissioning, but when on screen password box the pointer of the mouse and keyboard do not respond.

    This happens in safe mode for.

    The PC is a Sony Vaio laptop.

    Any suggestions,.

    John

    Hello Orwell,

    Thanks for posting your query in Microsoft Community.

    You have a Windows 7 installation disc?

    As you cannot start your computer at all, I suggest to run a Startup Repair to repair the damaged boot system files and try to boot into normal mode. See the section: How to use Startup Repair in the following link.

    Startup Repair: frequently asked questions

    If this does not help, try to boot from a disc to install Windows 7 on the Windows recovery environment mode and then try to run the Startup Repair tool and check if you are able to start normally with mouse and keyboard.

    Hope this information is useful. Let us know if you need more help, we will be happy to help you.

  • I lose the point of the mouse with a desktop in full screen with media center.

    I am running windows 7 64 bit. I have a graphics card 9800GT running a monitor and a LCD TV. I have the video installation of screens as extended desktop so that media center can run on the TV while I still have access to other functions of windows on the PC monitor. What happens is that when the library is running full screen on the TV I do not get a pointer on the other TV. When I close the Media Center or move it to full screen, the mouse pointer is still visible on both screens. It's really annoying. Does anyone know how to solve?

    I tried your suggestion and it did not work to retrieve the pointer of the mouse, BUT I don't have a partial solution. I bought a MCE remote and it allows me to control MCE well without the mouse. However, the downside is that I can't run other applications using the computer screen (the other view runs MCE) since I have no control of the mouse. Maybe you could help me out here. If I could remap a key on the remote control to switch in MCE mode while I run an app as I have everything that I need. Is there a key combination that will increase MCE from full screen to windowed mode?

    However, you must put in a bug report as I see quite a few others see mouse problems MCE running in mode full screen display.

  • Start Windows vista, nothing on the screen, only the pointer of the mouse

    I have a gateway desktop vista, nothing on the screen, only the pointer of the mouse
    I used the recovery tools nothing fixs

    Hello

    "I used the recovery tools nothing fixs.

    It helps us if you tell us what they were.

    Here is the guide to repair Options using a Vista DVD from Microsoft.

    If a friend or a work acquantance of yours has one, you can borrow and use it for repairs.

    http://www.bleepingcomputer.com/tutorials/repair-Windows-with-Windows-Startup-Repair/

    Table of contents

    1. Overview of Windows Vista repair options
    2. How to perform an automatic repair of Windows Vista using Startup Repair
    3. Advanced Tools Overview
    4. Conclusion

    If you do not or can not borrow a Microsoft DVD there is a download of a file ISO of Vista Startup Repair available that you can put on a Bootable floppy to make the above startup repair and that the method is recommended by a large number of posters in these Forums.

    Unfortunately, you have to buy it.

    Here is a link to it:

    http://NeoSmart.net/blog/2011/Windows-Recovery-discs-updated-reinstated/

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    If necessary, here's how to reinstall back to new condition.

    "Gateway Recovery Center in Windows Vista® '

    http://support.gateway.com/s/software/MICROSOF/Vista/7515418/7515418asi.shtml

    Read these options to the gateway address:

    Gateway System Recovery from the hard - the following are methods to recover or repair the computer using the recovery of hard drive partition.

    See you soon.

  • How can I change the size of the pointer of the mouse for my product

    How can I change the size of the pointer of the mouse for my product

    If it can be changed, the controls will be in the start menu / Control Panel / mouse.  It is not possible with all brands of mice.  Perhaps a different drawing will be have more big pointers - see the different options.  If the option is not listed or those listed do not help, go to the website of manugacturer of the device and download the most recent driiver for your mouse and your version of Vista and install it (Start/Control / Panel / Device Manager) and see what provides all premanente options that weren't there before and can adjust the size.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • I installed Windows 7 (64-bit) on my HP laptop. When I open a wizard, the point of the mouse frequently goes to the office.

    Hello

    I installed Windows 7 (64-bit) on my HP laptop. When I open a wizard, the point of the mouse frequently goes to the office.

    Example: If I type a URL in Internet Explorer the mouse point is for place in rear window (desktop) and I need to click on the URL bar to continue writing. It's frustrating to work.

    My first level of troubleshooting:

    Re-1 display drivers).

    (2) connected in safe mode and watched 5 minutes and has not seen the question. Seems the problem occurring in normal mode only.

    Thank you

    Vicky

    Hi Niranjan,

    Thanks for your reply. I tried some troubleshooting steps today morning and find the root cause of the problem.

    The problem with the driver for keyboard and mouse, so I uninsatlled form the machine. After the reboot, the problem disappeared, but my point of the mouse works slowly in any case I'm looking for the latest driver :)

    Thank you

    Vicky

  • Boring square around the pointer of the mouse in Windows 8

    Original title: boring square

    Our kitten sitting on the keyboard and now there is a square around the pointer of the mouse that I can not understand how to make it go away.  Windows 8.

    Hi Lesandru,

    What is the brand and model of the computer?

    It seems that the mouse settings should be changed, follow the steps below and check if this solves.

    (a) press the Windows key + X, select Control Panel.

    (b) Select mouse

    (c) in the Windows mouse properties, select the pointers tab.

    (d) select the Normal pointer.

    (e) click OK and apply.

    Let us know if you still face the question.

    See also section below.

    Mouse, touchpad and keyboard with Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/Mouse-touchpad-and-keyboard-problems-in-Windows

    Feel free to answer that if the problem persists, we're here to help.

  • Satellite A660 - 07P problem with the pointer of the mouse using the touchpad

    I just bought my A660 07P last Thursday, September 15, 10 and I noticed that I had problems with the mouse pointer using the touchpad.

    From time to time, the cursor/pointer is locked and seems something like a button up and down.
    I assume it's because it's on a mode of waiting, but in this case as every 5 minutes.
    When it is locked, it will also change the zoom percentage when the touchpad is struck. It is very not when I'm in the middle of something and I can not move the pointer. In addition, the start is very slow.

    BTW, I have not installed any programs or applications. I'm still testing until Friday, otherwise I'll go back to where I bought it.

    Hi mate

    This isn't touchpad problem.
    I guess as support for computer laptop MULTI-TOUCH PAD
    There are a few additional features supported by touchpad, and I think that you have enabled this while using the touchpad

    The touchpad supports the features:
    _ChiralMotion_
    You can scroll vertically and horizontally

    _Pinch Zoom_
    This feature provides functionality like the scroll wheel zooming

    _Rotating (chiral spin) _
    This provides gestures to rotate the photos and other objects

    _Momentum_
    This feature provides a smooth, fast trackball as the movement of the mouse. A quick finger on the touchpad surface can move the sliders in the entire screen.

  • OS boots to a white screen with the pointer of the mouse only

    doesn't show any desktop computer


    BONES appears at startup but without bars, icons or background when you are finished. Displays only the white screen with the mouse pointer. Even in safe mode unless there is safe mode in each of the 4 corners of the display discription and windows at top-center

    tablerock,
    Try the items listed on this thread.
    http://social.answers.Microsoft.com/forums/en-us/XPRepair/thread/901f9138-7a73-42f2-86ed-00c7fef3b77e

    Let us know the results. Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • After the welcome, the screen goes blank with the pointer of the mouse only.

    little time later virus scan comes up, by clicking on the close X Open IE to their web site, giving me access to the internet. Some time the error message later "host process for windows services stopped working and was closed". Occationally œuvres "error loading c:\windows\system 32\newdev.dll dynamic library initialization routine links (DLL) failed" safe mode. Tried windows recovery of F8 boot minimum, sfc/scannow, chkdsk/f/r, windows recovery disk, fix software reg, norton 360. Can open my computer browser, tried to run solitaire open saved the game box, but no other graphics. Reduced browser windows appear at the bottom of the desktop. Running vista Home premium service pack 2 on toshiba satellite L355-57902

    Given that safe mode works, start in safe mode and do a system restore to a restore point before the show.

    System Restore: frequently asked questions
    http://Windows.Microsoft.com/en-us/Windows-Vista/system-restore-frequently-asked-questions

    Note: If the system is infected with the virus, the system restore would NOT remove the virus.

    What resulted sfc/scannow? He did a report errors?

    Registry patches are false and I advise anyone using these cleansers to stay away from them.

    Have you had the chance to do a safe mode virus scan?

    Try ESET (http://www.eset.com/online-scanner) or a virus scan online Kaspersky (http://www.kaspersky.com/virusscanner).

    Download Malwarebytes anti-malware and scan your computer (from safe mode with network that is):

    http://www.Malwarebytes.org/

    Finally, do a repair installation:

    Vista - repair for Vista installation
    http://www.Vistax64.com/tutorials/88236-repair-install-Vista.html

    Back up all your data and do a clean install, if you feel that your computer be compromised anyway.

    Man is the only animal that laughs and cries; because it is the only animal that is struck by the difference between what things are and what they should be.

  • Tecra M5: Moves the pointer of the mouse to the corners of the screen - cannot be moved

    Had this problem intermittently on my Tecra M5. The mouse pointer starts to crawl toward the edges/corners of the screen, then picks up speed quickly, he will bring back zipper in the corners and no amount of mouse movement. happens if I am rooted in a docking station or not. have tried on many mice with the same effect. Will and without explanation.

    Also tried various re-boots, changes to the pointer settings in Vista. Everyone knows this?

    One of my friends had a similar problem. Without a serious reason, the mouse pointer moved at the edge of the screen and it was not possible to control the mouse cursor.
    Finally, EPA has replaced the keyboard (possibly the touchpad too don t know exactly) and this fixed the strange cursor movements

    Then maybe you should contact the ASP in your country and ask for help.

    Best regards & good luck

  • Windows Media Center captures the pointer of the mouse on the 2nd monitor when WMC window is enlarged.

    My mouse pointer is captured on the 2nd monitor when the windows media center window is maximized on this screen. I can return the mouse to the main screen when the window of the wmc is reduced.

    Hi ijeff:

    One option is to move the Media Center window on the second monitor, and then expand the window to fill as much of the screen as possible by dragging an edge to the outside.  You can fill most of the screen that also and always use the mouse on each monitor.  The other option is to try pressing ALT + TAB to release the mouse in the Media Center window.  I think that worked in MCE2005, but currently I don't have a dual monitor set up to see if it still works.  Good luck!

  • My pointer of the mouse/mouse usually sticks or scatters all over the window

    When you drag the page downwards or upwards on the right side of the window, the mouse sticks and I have to click twice to 'take off' it.  Often he "hop" around the page up down, left right, etc..

    This looks like something that happens with keys touch.  If that's what you use, I get a mouse and disable the touchpad.

  • Activate the pointer of the mouse on windows Tablet 8

    Hello

    I have a question on how to enable the mouse pointer on a touch screen of windows 8 tablets with no touch pad or are anchored.
    Is it possible to do this from the settings or control panel?
    I have here a way to install a virtual driver for a mouse to display the mouse pointer?
    Kind regards
    Mario

    No, the mouse pointer is not displayed, unless a pointing without touchscreen device is used.  If you use your finger, the mouse pointer is not drawn.

    Unlike the old operating systems (like Windows 7) who simply moved the slider and sent false "clicks" when you used the key, the touch system of Windows 8 is designed to work like that on the iPhone or Android: there is no cursor when you use the key (not even an invisible backstage).
  • Drawing a triangle shape through a script, reading a limits of the selection and the pointer of the mouse?

    Hello...

    It's a little more complicated, I guess...

    dialog sample.jpg

    I am looking for a way to automate the work I do for a manga magazine - cartoon or whatever they are called... I have a dialog box in an oval shape that is already formatted with a style of object to look like the oval in the left part of my image. I would like the script to read the position of the mouse pointer - I ran the script after selecting the oval and the place where the oval must point hover with the mouse... (In the picture so you can imagine my cursor somewhere in the lower left of the image, in the second part of the image corresponding to the angle of the triangle) I imagined this operation in at least two steps, the triangle (arrow) of the oval is a separate object (I would join the two forms later). The triangle can be with streight lines or maybe a little bent, for a most desirable look. I have no idea where to start, for now I create ovals and duplicate the triangle an old and position (+ turn) until I'm happy, after that I could join them. I hope the picture can better explain what I'm looking for.

    I know it is hard work - I think it may be useful for others, as it would be a good challenge for the very smart Scripting Guys of this forum...

    Thank you..

    Maybe you can use a single line to indicate the direction and the location where to that you must point.

    I did Speeech.js to illustrate this approach:

    http://www.Indiscripts.com/post/2012/01/speeech

    @+

    Marc

Maybe you are looking for

  • Slide the keyboard

    I use ipad ios 9.2.1 air is it possible for a keyboard slide like a shortcut? I can't use the app store to get an application, because for an ipad school they have deleted the app store with their mdm and stupp, and the app store has disappeared. Fur

  • change the name of the step within a sous-suite

    Hello I have a 'major' sequence and a sous-suite 'test '. Main test calls sous-séquence. The 'disable tracking in order' is active on the sequence of 'test '. During the execution of the principal I will not see what is happening in the subsequence '

  • Clear explanation of the name of the channel on IVI Drivers

    Hello I'm using Labview 8.0 assessment to write a program which will include a 35 - 5 p Xantrex XDL DC Power Supply to automate a test. It has only one exit. I installed the drivers XDL and IVI Compliance Package. However, I'm still struggling with t

  • HP Split x 2-13-r010dx short battery life

    I have a HP Split x 2-13-r010dx I bought a month ago.  It seems that the battery in the computer is very very poor.  I always load up completely overnight and as I am a student and I take it with me during my day and it does not use a lot in classes.

  • "syskey" or another password, save the recovery tool for my VISTA SP2

    I need a password recovery tool or the best possible Manager password programs for my Vista Ultimate SP2 (Acer, 5334, dual AMD AthlonX2 1.7Gig CPU, 1 Gig ram, VIVIDA) Lap top seyatem. I read that somewhere as "SYSKEY" are not worfk with Vista. What's