Custom Cursor point style on XY graph

Is there is a way you can change the point style of a cursor on an xy graph to somthing custom, possibly an image or somthing else. Basicly Id like to have very many point styles, but more then just whats in LV, Id want some that actually look different.
Thanks,
-Mark

Hi Mark,
You can use an event structure to detect when the mouse enters or leaves the XY graph. When the mouse enters you can set the cursor using the "Set Cursor" VI and when it leaves you can unset the cursor using the "Unset Busy" VI. You can create a reference to a custom cursor beforehand using the "Create Cursor from file" VI. Unfortunately none of the VIs that I mention here are available with the base package.
I've attached an example program written in LV7 on Windows. (note: you need a .ani or .cur file for the cursor you wish to use)
Hope this helps,
Neil
Attachments:
XY_Cursor.vi ‏83 KB

Similar Messages

  • Custom cursor point style

    Is there is a way you can change the point style of a cursor on an xy graph to somthing custom, possibly an image or somthing else. Basicly Id like to have very many point styles, but more then just whats in LV, Id want some that actually look different.
    Thanks,
    -Mark

    me too i want this option.can i make the cursor as a small car or small dog......?
    can any body help me?

  • Custom Icon / Marker / Point-style on Graph

    Is there a way I can use a custom icon (or point-style) on a graph or chart?  I want to place a series of points on an XY-Graph but I don't want to use any of the built-in point styles, I want to use a .gif file I have.  I have toyed with the idea of converting an XY position to a screen position (in pixels) and hiding / showing an icon already on the front panel, and moving it.  This seemed like a bit of a hack to me, I'm hoping there's a better way.
    Thanks

    ptilghma -
    I know you can modify programmaticaly:
    Graph palette
    Plot legend (waveform chart, waveform graph, xy graph, and digital waveform graph only)
    Scrollbar (charts only)
    Blinking plot
    Label scroll position
    Active X/Y Scale
    Using property nodes  but I don't think that it modifies the icon.
    I think mapping out the screen and applying some sort of logic to replace the points is your only way out.
    Here is a link describing the use of property nodes in graphs
    http://digital.ni.com/public.nsf/websearch/A0525AF9D64408F186256BFB005970EB?OpenDocument
    Best Regards
    Bruno Noronha
    Bruno Noronha
    Certified LabVIEW Associate Developer
    Using LabVIEW 8.6

  • LabVIEW XY graph point style bug

    I have a XY graph showing two or more signals
    I have seleced a circular point for the data poins of the first signal.
    When I try and select te same point for the second second, it shows up as at diamond with an open space in the middle.
    Bug?
    LV 2011 
    Solved!
    Go to Solution.

    This is the problem:
    When access the plot legend and I choose THE SAME point style (First row, third column) for both graphs, why do they then appear differently in both the legends and in the graphs afterwords, just as shown in the picture ???
    Simple as that.
    I put the graph with data as an attachment so anyone can see if they get the same.    LabVIEW 11.
    Attachments:
    XY bug.vi ‏11 KB

  • Cursor name visable property on xy graph: name overlays cursor point.

    I have an XY grpah set up, and I realized that when i apply the name visable attribute to the cursors programmiably, the name seems to overlay teh cursor, being right on top of it. Yet if i do it manualy through the cursor legend, it shows it on top... its very odd. Ultimatly i do NOT want to do ti manualy becuase i wil be have an unknown amount of cursors being created and would like them all to show the lables that i give them ABOVE the point... not ontop of it, because its obivously not readable. Anyone have a solution for this?
    Thanks,
    Mark

    Mark,
    There is no property to set the position of the cursor label. However, you can add empty characters at the begining of the label, so that the actual string will be to the right of the vertical cursor.
    In LabVIEW 7, the cursor label is displayed above the cursor point, but on top of the vertical cursor line.
    Zvezdana S.

  • Move the name of cursor (not the cursor itself) on the XY graph

    I use cursor list property to overlay cursors on the XY graph, everything looks fine except that the name of the cursor and the cursor are at the same position, so it's hard to read the name of the cursor. Is there anyway to dynamically move the name of the cursor?

    No, you cannot do this programatically, the cursor name position may only be moved manually when the Name is "Trackable" (when Allow Drag == TRUE). However, you can use cursors in pairs of two to accomplish this. Use the first one as a normal cursor and the second one only for the cursor name, making the line (Hair Style) and point (Point Style) invisible (=0). If you have multiple cursors, just treat them as pairs and multiple your index by two, when finding the index of the pair.
    Good luck,
    Jim
    Attachments:
    Cursors.vi ‏39 KB

  • Custom cursor using image gets resized bigger

    I have created a custom cursor using the following code:
    ClassLoader cl = this.getClass().getClassLoader();     
    Toolkit tk = Toolkit.getDefaultToolkit();
    Image im = tk.getImage( cl.getResource("images/wallcursor.gif"));
    Cursor Custom_Cursor = tk.createCustomCursor(im,new Point(9,9),"Drawing wall");
    draftGrid.setCursor( Custom_Cursor );The cursor is loaded and it works, however - the image I use for the cursor is resized so it gets too big. Any clues on why this happens?
    btw; draftGrid is one of my own classes that extends JComponent.
    - bjorn

    Thanks for your replies guys.
    I tried your code KPSeal, and it works in resizing the cursor image back to its original size. However, a gray square of size 32,32 (which is returned by getBestCursorSize()) is shown round the cursor.
    Here is the updated code (yours hade some minor bugs)
    Image im = tk.getImage( cl.getResource("images/wallcursor.gif"));
    try {
           tracker.addImage(im, 0 );
           tracker.waitForID(0);
    } catch( InterruptedException ie ) {
           ie.printStackTrace();
    int w = im.getWidth(this);
    int h = im.getHeight(this);
    int pw = Toolkit.getDefaultToolkit().getBestCursorSize(w, h).width;
    int ph = Toolkit.getDefaultToolkit().getBestCursorSize(w, h).height;
    System.out.println("w="+w+", h="+h+" - pw="+pw+", ph="+ph);
    Image cim = createImage(pw, ph);
    cim.getGraphics().drawImage(im,0,0, this);                     
    Cursor Custom_Cursor = tk.createCustomCursor(cim,new Point(0,0),"Drawing wall");
    draftGrid.setCursor( Custom_Cursor );The System.out.println statement prints: w=18, h=13 - pw=32, ph=32
    If I try to do the createImage with w and h instead of pw and ph the same gray square (32,32) is created, and in addition the cursor's size is too big which was the probem to begin with ...
    - bjorn

  • Custom cursor using startDrag

    Hello everyone,
    I have a movieclip following my mouse to act as a custom cursor.
    I am using startDrag on the movie clip and mouse.hide()
    What I am trying to resolve is the following:
    I have several hidden simple button objects in the background of my flash movie. ( I am using these to detect when the user has the mouse in certain areas of the flash movie)
    When i go to move over these simple buttons, my custom cursor movieclip stops following the mouse cursor.  Normally my cursor would also then change to the Hand cursor, but i disabled that.
    Can anyone think of any method or hack that would make this work for me?  I would like my custom cursor following the mouse pointer at all times even when hovering over a simple button.
    thanks in advance.

    The cursor changes to hand cursor yet?
    When you say "single button Several hidden objects", the number is?

  • Custom Cursor and Drag Image in 1.4 DnD

    What is the proper way to provide a custom cursor and drag image in 1.4 DnD? Say we initiate the drag on a component that supports data transfer (such as a JTree).

    Well, this is strange. My app was locking up (100% CPU) when using DND from windows Explorer.
    I noticed that another part of the same appliction was working perfictly. The difference: JFrame .vs. JDialog. I switched the offending JDialog to a JFrame and all works perfictly now!
    java version "1.4.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-b92)
    Java HotSpot(TM) Client VM (build 1.4.0-b92, mixed mode)
    I would like to switch back at some point, but my g.setXORMode() problem is a much bigger issue for us. (That is, once you enter the XOR mode, you can not go back!)

  • Adding a custom cursor to a panel

    HI, I am making a game where i want clicking a radio button to change the cursor image. I have figured out how to create a custom cursor, and even change the current cursor to it. The problem im having is i want to change it while the program is running. I can say somthing like frame.addCursor(cursor) but that sets it permenantly. What i would like is to add it to a panel during run-time. If anyone knows how i would go abou this i would be gratefull.
    Thanks

    Do u mean, upon selecting the radio button, the cursor must be changed to the customized one?
    If it is so,
    u add the snippet in the itemStateChanged() event....of the radiobutton
    i.e.,
    public void itemStateChanged(ItemEvent ie)
    if(ie.getStateChange() == ItemEvent.SELECTED)
    myPanel.setCursor(Toolkit.getDefaultToolkit().createCustomCursor(CursorImg, new Point
    (0,0), "MyCursorImg"));
    CursorImg - the image to display when the cursor is actived
    new Point(0,0) - hotSpot
    MyCursorImg - a localized description of the cursor, for Java Accessibility use
    else
    myPanel.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
    }

  • Using custom cursor

    I want to use a cursor from file in my page. How can I do
    this?
    I've found:
    <style>
    <!--
    BODY{
    cursor:url("3dwmove.cur");
    -->
    </style>
    but works only in IE and for all page not only for a link for
    example.

    You can't. Custom cursors are a pain for your visitor, many
    (most? all?)
    of whom will not want to download and install something from
    a site.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Flesky" <[email protected]> wrote in
    message
    news:ehi23v$653$[email protected]..
    >I want to use a cursor from file in my page. How can I do
    this?
    >
    > I've found:
    > <style>
    > <!--
    > BODY{
    > cursor:url("3dwmove.cur");
    > }
    > -->
    > </style>
    >
    > but works only in IE and for all page not only for a
    link for example.
    >

  • Custom cursor that follows mouse - JITTERS

    Hi again.
    I'm using this code to make my custom cursor follow the mouse, HOWEVER when it gets near to the mouth it goes loopy - and turns left and right in a fit. Can I put code in there for it to be smoother?
    The CODE is lower done highlighted in BLACK.
    Cheers
    // Remeber to add private to vars and public to functions that are used outside.
    import flash.display.MovieClip;
    import flash.media.Sound;
    import flash.events.Event;
    import flash.ui.Mouse;
    import flash.events.MouseEvent;
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    var v:Number=5;
    var varObject:String;
    var i:Number;
    var arrayObjects:Array;
    var soundClip:Sound;
    var randomnumber:Number;
    //public function game1SunnyWalk() {
    stage.addEventListener(MouseEvent.MOUSE_MOVE, myClickReaction);
    stage.addEventListener(Event.ENTER_FRAME,enterFrameHandler);
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    // populate array and initiate variables i and varObject
    this.arrayObjects=["chocolate","icecream","pizza","hamburger","sandwich","egg"];
    this.i=1;
    this.varObject=arrayObjects[i-1];
    var clickPoint:Point = new Point();
    function myClickReaction(e:MouseEvent):void {
    clickPoint.x=this.mouseX;
    clickPoint.y=this.mouseY;
    function onEnterFrame(event:Event):void {
    var xDistance:Number=clickPoint.x-this.planeAndSunny.x;
    var yDistance:Number=clickPoint.y-this.planeAndSunny.y;
    var angle:Number=Math.atan2(yDistance,xDistance);
    this[varObject].y += 5;
    //trace(this[varObject].y);
    this.planeAndSunny.x+=v*Math.cos(angle);
    this.planeAndSunny.y+=v*Math.sin(angle);
    if (clickPoint.x>=planeAndSunny.x) {
    this.planeAndSunny.gotoAndPlay("right");
    //trace(Math.abs(xDistance));
    if (this.planeAndSunny.x>=clickPoint.x) {
    this.planeAndSunny.gotoAndPlay("left");
    //trace(Math.abs(xDistance));
    //if (Math.abs(xDistance)<=10) {
    //trace("works");
    //this.planeAndSunny.gotoAndPlay("static");
    //removeEventListener(Event.ENTER_FRAME, onEnterFrame);
    function enterFrameHandler(e:Event):void {
    varObject=arrayObjects[i-1];
    // this property refers to the mc being referenced and as it's an array you also need the square brackets
    // I tried to hitTest only the STRING whereas you need to hitTest the object
    // ie: this refers to the array object and NOT the string.
    if (this.planeAndSunny.hitTestObject(this[varObject])) {
    //starts sound
    //init();
    // spins the object
    spin();
    trace(varObject);// BUT you can trace the STRING ie: No need to use OBJECT(STRING) - which would be the actual mc.
    removeEventListener(Event.ENTER_FRAME, enterFrameHandler);// ie: You can't do a hitTest on a string BUT on an object. (The array)
    //var soundClip:Sound;
    //function init() {
    //soundClip = new Sound();
    //soundClip.load(new URLRequest("sound/chocolate.mp3"));
    //soundClip.addEventListener(Event.COMPLETE, soundLoaded);
    //soundClip.addEventListener(ProgressEvent.PROGRESS, soundLoading);
    //function soundLoaded(e:Event) {
    //soundClip.play();
    function spin() {
    //tw.addEventListener(TweenEvent.MOTION_FINISH, spinStopped);// note than when you use addEventListener - the function called uses that event as an argument in brackets after the function name
    var tw:Tween=new Tween(this[varObject],"rotation",Strong.easeOut,0,360,2,true);
    var numturns:int=8;
    this[varObject].removeEventListener(MouseEvent.CLICK, spin);
    tw.begin=this[varObject].rotation;
    tw.finish=numturns*360;
    tw.start();
    i=i+1;

    you can easily attach the cursor between the specific layers you want using an empty movieclip and add your cursor movieclip to the emptyMC using the class name. Look at the screenshot and follow the code. it works
    and here is the code:
    import flash.display.MovieClip;
    var whytehand:MovieClip=new cur();
    emptyMC.addChild(whytehand);
    emptyMC.mouseEnabled = false;
    emptyMC.addEventListener(Event.ENTER_FRAME, fl_CustomMouseCursor_5);
    function fl_CustomMouseCursor_5(event:Event)
        emptyMC.x = stage.mouseX;
        emptyMC.y = stage.mouseY;
    Mouse.hide();
    Thatz it!

  • Custom cursor click

    I'm using this to create a custom cursor and to use a mouse click event on a movieclip:
    stop();
    Mouse.hide();
    stage.addEventListener(MouseEvent.MOUSE_MOVE,follow);
    function follow(evt:MouseEvent)
              cursor_mc.x = mouseX;
              cursor_mc.y = mouseY;
    volgendePijlClip.addEventListener(MouseEvent.CLICK, pijlEventClip);
    function pijlEventClip(event:MouseEvent):void
              trace(1)
    At first it didn't work for me, but I found out that was because the custom cursor was over its registration point. Which was made equal to the mouse's location. So when the mouse was clicked on the movieclip-button, it was actually clicking on the custom mouse cursor itself, so the click on the 'volgendePijlClip movieclip wasn't picked up on.
    I solved it by moving the custom cursor slightly away from it's registration point, so it would appear slightly of mouseX/mouseY. Close enough to act as cursor, but away of the cursor enough so the hidden mouse cursor could pick up a click on 'volgendePijlClip'.
    Was wondering if there still was a way for a custom cursor to be over it's registration point and have the hidden mouse cursor still pick up on clicking on objects beneath the custom cursor?

    assign its mouseEnabled property to false:
    cursor_mc.mouseEnabled=false;

  • How to create custom cursor??

    I want to create a new cursor using Toolkit.createCustomCursor(Image,Point,String),
    but Image can only accept .gif,.jpg file,it cannot know .cur,
    so if image's background's color is not equal to panel's background's,
    the cursor that show in the panel looks like malformed rectangle.
    so is there any better way to create a custom cursor??

    Create the cursor as a transparent gif if you need it to be transparent.
    nes

  • How to make a custom cursor

    How do you make a custom Cursor with the Cursor class, so that I can use it in my program.
    And also, how do you make a LookAndFeel??

    To make a cursor use:
    createCustomCursor public Cursor createCustomCursor(Image cursor,
                                     Point hotSpot,
                                     String name)
                              throws IndexOutOfBoundsException, HeadlessException
    Creates a new custom cursor object. If the image to display is invalid, the cursor will be hidden
    (made completely transparent), and the hotspot will be set to (0, 0). Parameters:hotSpot - the X
    and Y of the large cursor's hot spot. The hotSpot values must be less than the Dimension returned
    by getBestCursorSize().name - a localized description of the cursor, for Java Accessibility use.
    Throws: IndexOutOfBoundsException - if the hotSpot values are outside the bounds of the cursor.

Maybe you are looking for

  • Territory and partner determination procedure for employee responsible

    Hi CRM team, I have a little issue for you I'll be very thankfull if someone could help me. There is the organisation of the territory management in the company I'm working for: -Country -Region -sector *each sector have a determination rule based on

  • Adobe Camera Raw Update in Photoshop CC

    Problem is my Lightroom 5 is using ACR 8.4 but when I use Ctrl E to send my photo over toe Photoshop CC for editing in TIFF it always says that the ACR is incompatible as a different version with the ACR in Photoshop being only only on version of 8.3

  • How do I make PDF with layers that can be turned on and off?

    I am creating a map in Indesign CS4 and I want to have different layers that can be turned on and off.  Layers like different places and names that can be controled in Acrobat (and Reader).  Im not sure how to go about this and if this is something c

  • What is the new command for "Save As" in iWork?

    How do I start a new file from an old file?

  • Editing a .fla

    Last night I was messing around with an HTML/Flash template a friend of mine sent me through email. This is a pretty high quality and professional looking website that I'm looking to edit and insert into my own site. My problem is this; first I tried