Position of the mouse on the photo

I use an image control with the mouse to the bottom/mouse move event detection. With the 'Mouse' for the image control property, I can tell the relative position of the cursor of the mouse on the photo. My problem is that the image control has scroll bars, and even clicks/movements on the scroll bars triggers events! Is there a practical way to determine if the mouse is on the scroll bars or the actual image?

OK, I found a solution much simpler. You don't need to 'measure' the toolbars; the DrawAreaSize of the images property returns the surface drawable, excluding toolbars. The attached extract check if you're on the scroll bars

Tags: NI Software

Similar Questions

  • How can I change the position of the photo

    How can I change the position of the photo after I saw the DVD?

    I thought about it!  Thank you

  • How to find the position of the VI icon currently run on the block diagram of the appellant

    Dear forum,

    I am currently trying to use a LabVIEV VI as a simple sequencer: several (very slow) actions must run one after the other. Each action is represented by a Sub - VI, some actions are executed several times. My task is to view the Subvi somehow executing.

    My first intention (just manipulate the icon of the VI running with 'Icon.Get VI as Image data' / 'Icon.Set VI of Image data' invoke nodes) has failed, because it changes all instances of the VI icon. If you use the same VI several times, all these VI icons are changed (see here: http://forums.ni.com/t5/LabVIEW/How-to-change-animate-icon-of-currently-running-VI/m-p/3120754/highl... )

    My current approach is to use an image of the block diagram (with "VI: block diagram: get resized Image ' call method) in a picture of the front panel control and working within this control. But for this I need to know the position of the icon of the VI running. I know that I can assess the limits and Position via the properties GObj, but how to find the VI running (note that a VI can be installed several times on the block diagram, so the name of the VI is not unique)? IMHO the easiest way might be if a VI might find its icon on the block of the appellant diagram itself when it is run...

    It is clear that this position is not yet the position on the photo, but this conversion is a small piece of work...

    Kind regards

    cpschnuffel


  • wallpaper will change the position of the image

    HP Pavilion dv7t 2200 - I put one of my pictures as wallpaper, but the position of the image is stuck on "limousine."  I try to choose other positions of the photo and clicking "save changes", but nothing happens - always stays on "stretch".

    Does anyone have a solution for this?

    Well you didn't say what OS your running, but if windows 7, use this link http://h10025.www1.hp.com/ewfrf/wc/softwareList?os=4063&lc=en&dlc=en&cc=us&lang=en&product=3999449 and at the bottom, install the screen background picture position enabler

  • Picture the same positioning on the web as in DW 8 - how?

    If you see this page

    http://www.enhancedwireless.NET/test.html

    you will see the first jpg, that's what I want: the look and position of the photo of the CEO, this snapshot is in DW 8... the 2nd picture shows what happens when it is published on the web, the tile moves upward... I positioned just choose 'right' in the alignment Panel in DW, then she does slip up.

    How can I make the image be placed as it appears while I work on it in DW 8?

    Thank you

    KO

    OK fixed it... simply moved the peak down to start on the first row under the name/title, he lined up again RIGHT, works now.

    KO

  • 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.

  • Portege M780-106 - the mouse pointer position of the stylus trolling

    Question re Toshiba portege M780-106 touch screen laptop:
    We have a problem with the mouse, the position of the stylus trolling.

    This gap considerably increases the speed of the increase in movement of the stylus.
    As we had a task of monitoring with the stylus it is problematic.

    We run the task in Windows 7 using python 2.6 with mainly pygame library functions.
    Is there a way to disable the process that produces this discrepancy between stylus pointer and mouse?

    Any help much appreciated!

    Best
    Steve

    The CPU is running in performance mode? There may be a delay because the eco mode is activated, or the speed of the CPU has strangled at low speed.

  • get the position of the mouse on the screen

    How to use the local, local X Y properties of mouse click event...

    Any example pls...

    Use mouseX and mouseY to get the position of the mouse.

  • Make very small adjustments of position of the image without using a mouse

    First Elements 14.  I want to set the position of a background image used in a title of movement.  I am able to select the background image.  However, the only way to move/adjust the position of the image is to use the mouse.  With the help of the mouse gives me enough "micro movement."  The mouse's movements that are too large.  How to use the keyboard to make the mirco-fine adjustments to the position of the image?

    Thank you.

    Is - this context in the title of the Motion itself? If so, micro adjustments can be difficult.

    However, if you set the background of the title of transparent movement and put the background on the video track below, you can make very specific changes to the background by going to apply effects/Motion and Position adjustment digitally.

  • When I press the left side of the mouse without grid appears in the photo. I can't change anything without a grid. You can

    When I press the left mouse on an image without a grid appears in the photo. I can't change anything without a grid.

    Choose the crop with these settings tool in the Options bar, and the left click will work for you

  • Control a movieclip with the position of the mouse

    Hello everyone,

    I worked on a small project at work, I'm trying to controll a movieclip which consists of 60 still images of an aircraft (total 120 frames) that when played will show a view of 360 degrees of said aircraft. I can make it work with buttons, but ultimately I want to control the movieclip by moving the mouse. If anyone can help, that would be wonderful. Thanks in advance.

    Here is the code:

    import flash.events.MouseEvent;

    AC. Stop();

    stage.addEventListener (MouseEvent.MOUSE_MOVE, mouseMove);

    function mouseMove(event:MouseEvent):void
    {
    If (mouseX > 800 & & (mouseX < 1600))
    {
    ac.gotoAndStop (ac.currentFrame + 1);

    if(AC.currentFrame == 120)
    {
    ac.gotoAndStop (1);
    }
    }
    on the other
    {
    ac.gotoAndStop (ac.currentFrame - 1);

    if(AC.currentFrame == 1)
    {
    ac.gotoAndStop (120);
    }
    }
    }

    Using this code, the SWF file acts ok without error. I can do the movieclip play in any direction, however, when you move the mouse in the opposite direction that the movieclip continues to play forward or backward.

    Thank you

    Tommy

    There are at least two ways you can address this problem and they both require to control the position of the mouse more closely.  Now you have a general... If it's 800 > ahead and if his < 800="" step="" back,="" but="" when="" you="" step="" back="" from="" 1200="" to="" 1199="" you="" are="" still=""> 800, if you take one more step.  You need to either follow the change in mouse position or the position of the mouse to determine the framework of movieclip.  The second one is probably easier to design and will also be more accurate if the intention is to have a rotation for a displacement of the full scale of the mouse... otherwise you could just step back of a pixel at a time and in 120 pixels of movement... that might be what you want-the purpose is not explained in what you provided.

    (1) following the change of the position of the mouse - you must keep track of where the mouse was against where the mouse is when you check it... if(previousMouseX > currentMouseX)... you need to make the animation go back, etc...

    (2) with the position of the mouse to determine the frame movieclip - divide 120/1600... This is the number of images per pixel.  Take the current value of mouseX and multiply by that and make it an integer - go to this issue of image in the animation... simplifies this entire function similar to...

    function mouseMove(event:MouseEvent):void {}

    ac.gotoAndStop (int(mouseX*120/1600));

    }

    but refine to remember that there is no image 0

  • AAE: How to track the eyes in order to position the photos of my face

    Hello

    I took pictures of my face for more than two years. Now, I am creating a short film with these photos.
    My problem: although I tried taking identical pictures, I am always placed a little different from the day before.

    Until today, I used some really basic programs: a journal on my monitor and the painting to move the image in the right place, Irfanview to cut the photos and finally Moviemaker to create the movie. You can imagine how much effort it is if you have to deal with more than 800 photos.

    That's why I thought I could try with Adobe After Effects using the tracking feature. I already looked at several tutorials and read a few instructions, but because I want to create a film composed of photos and clips video-no I have not found a way how to solve the problem. My idea was that EFA is both my eyes, move the image to the right position and it resizes if necessary. Finally, he should cut all the images to get a correct form.
    Do you know if that is possible with After Effects or is there another program I should use?

    Thanks for your help,

    Andy

    Will not work. You must do it manually. AE has no way to detect characteristics across inconsistent data temporally and spatially, which is a sequence of Time lapse. There are a few experimental programs out there, but they are not generally publicly available and only research. AE can help you with the scaling and deformation by using patterns of fusion as difference or reducing opacity as effects like mesh Warp or optical Compensation may be useful to correct the deformation intra-image and lens distortion, but there is still a lot of manual work. Similarly, the fusion of panorama and Merge to HDR in Photoshop that could be used to create a few layers of basic DSP with aligned layers, but you still need to refine later.

    Mylenium

  • Calendar AS3 with the position of the mouse control.

    Hi everyone, thanks in advance to the community for any help you might be able to offer, it's all the incredably appreceated.

    It is a problem which had scratching me my head for months and be a facilitator, was really stretching my AS3 skills a bit.

    I create an interactive story of sorts and what is needed is to use the horizontal position of the mouse to scroll forward or backward on a timeline that is, when the mouse is in the dead center of the stage that the playhead does not move, but once he deveates right centre of the read head moves forward and plays the animation and a Once it moves to the left the read head begins to move backwards.

    Ideally I would have an acceleration effect, where the animation scrolls while the timeline at a minimum speed when the mouse is always close to the Center but at a faster rate once it is reached the edges, but right now, it is a secondary concern.

    There are also keys to move through various scenes, I can code myself, I only mention this in case it affects the rest of the code.

    Thanks for you help and any solutions or navagating alternitive methods a timeline are welcome indeed

    I'll be sure to pass on the karma to an area im more familiar with.

    var mc:MovieClip = MovieClip (this);  //<- timeline="" you="" want="" to="" control="" with="" mouse="">

    var maxScrollSpeed:int = 100;  / s max for mc above

    var m:Number;

    var b:Number;

    var prevFPS:int;

    paramF(0,-maxScrollSpeed,stage.stageWidth,maxScrollSpeed);

    this.addEventListener (MouseEvent.MOUSE_MOVE, scrollF);

    function scrollF(e:Event):void {}

    var fps:int = Math.round(m*mouseX+b);

    {if(prevFPS&&prevFPS!=FPS)}

    {if(FPS!=0)}

    {if(FPS>0)}

    playF (mc, mc.currentFrame, mc.totalFrames, fps);

    } else {}

    playF(mc,mc.currentFrame,1,-fps);

    }

    } else {}

    stopF (mc);

    }

    }

    prevFPS = images/second.

    }

    function playF(mc:MovieClip,_m:int,_n:int,_fps:int):void {}

    var playFFF2:Function = {function(mc:MovieClip):void}

    If (mc.m

    mc.nextFrame ();

    } else {}

    mc.prevFrame ();

    }

    If (mc.currentFrame == mc.n) {}

    clearInterval (mc.int);

    }

    updateAfterEvent();

    };

    MC.m = m;

    MC.n = n;

    MC. FPS = FPS;

    mc.gotoAndStop (mc.m);

    clearInterval (mc.int);

    MC.int = setInterval (playFFF2, 1000/mc.fps, mc);

    }

    function stopF(mc:MovieClip):void {}

    clearInterval (mc.int);

    }

    function paramF(x1:Number,y1:Number,x2:Number,y2:Number):void {}

    m =(Y1-Y2) /(x1-x2);

    b = y1 - m * x 1;

    }

  • Help, please! animation of an Image to the top and stay in an elevated position, until the mouse leaves hover

    I have an image I want to animate on hover above him as in this example http://codepen.io/chriscoyier/pen/vDBCI I would like the picture to animate to the top and stay in an elevated position, until the mouse leaves the hover.

    After clicking on the link above, the example is in the lower left corner of the page (it's a red rectangle.  Go over it please and you will see what I want to accomplish)

    If we cannot accomplish this in muse, can I use another Adobe software to create and import in muse?

    Thx for your help!

    Sam

    Try this code

    in HTML

    In your code, I see under style, Body tag is not closed,} is missing, maybe that's the reason.

    Hope this helps

  • How to check the position of the mouse

    Hi, I am trying to do a drag and drop and validate it, now I have my slide - déposer but I can't validate if I drag the right answer to the right place.

    Is it possible to check the position of the mouse, so when I'm draggin I use smth like:

    If (mouseX = 50 & & mouseY == 100) {}

    My answer is correct

    } else {}

    incorrect ansewer

    }

    Please help me =)

    Hello, a tutorial by Paul Trani I looked on this topic has really helped me:

    http://paultrani.com/2013/03/follow-mouse-movement-in-edge-animate/

    In it, I would use the variables posX and posY to influence your function
    I hope this helps!

    Katherine

Maybe you are looking for

  • HP pavilion p6-2469ea: upgrade help

    Hi, I currently plan on upgrading my hp pavilion p6-2469ea to be able to run more demanding games upstairs, as the ARK: survival has evolved and I have no experience with computers I'm stuck help then about what it needs to be updated and some recomm

  • Serious problem with windows

    Guys, I have laptop dv6-6c55se Pavilion. Recently I face a big problem with my HP laptop. When I open some games or some other heavy programs the blue window and displays the image below. It happens more often recently. I have a switchable graphics o

  • Cannot use MS Paint tool - error with Vista on Satellite L40-139

    I recently reinstalled my windos vista family premium from the backup drive, because my laptop refuses to boot and start the recovery file not found... Since then, I have tried to load the application of paint and had an error: microsoft paint has st

  • Phone scam received call from a technician who said my system was infected

    I am gullible who maybe went too far with the Indian phone call. As I was using my laptop at the time, it was too easy to believe.Although I was getting suspicious, I actually entered a code provided by the appellant, to allow the "technician" to adv

  • scanning multiple pages in pdf format

    Printer: HP Officejet 4620 System: Windows XP How to scan multiple pages into one PDF document?