tracking mouse position

  • Follow


Hi everyone,

I am trying to build a simple gui which will diplay a different picture from a file according to the position of the mouse (or when the mouse is clicked) on a picture.
Do you know how I can to that easily???
thanks 
pierre
0
Reply pierre 1/8/2010 7:22:20 PM

Sorry I just realised I did not give much detail:
My main concern is to obtain the "live" position of the mouse, because then the rest should be easy...
pierre

"pierre vernhes" <ppp@yahoo.fr> wrote in message <hi80lc$btf$1@fred.mathworks.com>...
> Hi everyone,
> 
> I am trying to build a simple gui which will diplay a different picture from a file according to the position of the mouse (or when the mouse is clicked) on a picture.
> Do you know how I can to that easily???
> thanks 
> pierre
0
Reply pierre 1/8/2010 7:29:37 PM


Have a look at the sample GUI corresponding to question #24:

http://www.mathworks.com/matlabcentral/fileexchange/24861-35-complete-gui-examples


That will give you a good start.
0
Reply Matt 1/8/2010 9:02:19 PM

2 Replies
402 Views

(page loaded in 0.035 seconds)

Similiar Articles:













7/21/2012 11:44:11 PM


Reply: