From: vietha on 22 Oct 2009 07:08 hi guys, In GUI, how to show the co-ordinate of the current point which is the position of the mouse in the graph? Thanks in advance.
From: Dave Robinson on 22 Oct 2009 08:06 "vietha " <nguyenviethat2(a)gmail.com> wrote in message <hbpeek$hik$1(a)fred.mathworks.com>... > hi guys, > > In GUI, how to show the co-ordinate of the current point which is the position of the mouse in the graph? > > Thanks in advance. Whats wrong with using the function ginput() as I suggested in your last contribution? There is very little point in asking exactly the same question over and over again after someone has attempted to help. If their suggestion doesn't work, then say so in the same thread, then other suggestion will be sure to follow. Regards Dave Robinson
From: ImageAnalyst on 22 Oct 2009 09:21 On Oct 22, 7:08 am, "vietha " <nguyenvieth...(a)gmail.com> wrote: > hi guys, > > In GUI, how to show the co-ordinate of the current point which is the position of the mouse in the graph? > > Thanks in advance. ---------------------------------------------------------------------------------------------------------- If you're asking about a "live" readout, it doesn't appear that the axes objects expose any kind of "MouseMove" event where you can print the current x,y coordinate into some static text label on your gui. I agree that it's very primitive with only 3 measly callback functions, not dozens like Microsoft Visual Studio. Unless Yair or someone else can provide some tricky undocumented way to do it, you're stuck with just reporting the x,y position via the ginput like Dave said. Hopefully their GUI technology will move into the modern era someday.
From: Steven Lord on 22 Oct 2009 09:36 "ImageAnalyst" <imageanalyst(a)mailinator.com> wrote in message news:e25fe209-3289-4ff9-8965-d2b98b3a3eaf(a)j9g2000vbp.googlegroups.com... > On Oct 22, 7:08 am, "vietha " <nguyenvieth...(a)gmail.com> wrote: > > hi guys, > > > > In GUI, how to show the co-ordinate of the current point which is the > > position of the mouse in the graph? > > > > Thanks in advance. > > ---------------------------------------------------------------------------------------------------------- > If you're asking about a "live" readout, it doesn't appear that the > axes objects expose any kind of "MouseMove" event where you can print > the current x,y coordinate into some static text label on your gui. I > agree that it's very primitive with only 3 measly callback functions, > not dozens like Microsoft Visual Studio. Unless Yair or someone else > can provide some tricky undocumented way to do it, you're stuck with > just reporting the x,y position via the ginput like Dave said. > Hopefully their GUI technology will move into the modern era someday. Perhaps this entry in Doug's blog does something similar to what the OP wants? http://blogs.mathworks.com/videos/2008/05/27/advanced-matlab-capture-mouse-movement/ Or this technical support solution? http://www.mathworks.com/support/solutions/en/data/1-1V97EZ/?solution=1-1V97EZ Or this? http://www.mathworks.com/support/solutions/en/data/1-15R0M/?solution=1-15R0M Or the IMPOINT function in Image Processing Toolbox? http://www.mathworks.com/access/helpdesk/help/toolbox/images/impoint.html Or DATACURSORMODE? http://www.mathworks.com/access/helpdesk/help/techdoc/ref/datacursormode.html Just because figures and axes don't expose dozens of callback functions doesn't mean they're primitive. But if there's a specific callback that Microsoft Visual Studio exposes that you'd like to see exposed for figures or axes, let us know which ones and how you would use them if they were available. http://www.mathworks.com/company/aboutus/contact_us/?s_cid=docframe_aboutus_contact_us -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: Matt Fig on 22 Oct 2009 10:47 GUI_24 does just this: http://www.mathworks.com/matlabcentral/fileexchange/24861-35-complete-gui-examples
|
Pages: 1 Prev: Problem with java socket creation in jtcp Next: Push Button to Open New Figure with Controls |