Path: news.mathworks.com!not-for-mail
From: "David " <daviddoria@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Axes tools in GUI
Date: Wed, 2 Jul 2008 14:54:02 +0000 (UTC)
Organization: Rensselaer Polytechnic Institute
Lines: 12
Message-ID: <g4g4qa$3k3$1@fred.mathworks.com>
References: <g414n2$no7$1@fred.mathworks.com> <e432d979-f637-4ab4-aca0-cffe9372ee6e@g16g2000pri.googlegroups.com> <g4dmdi$a0u$1@fred.mathworks.com> <g4dmtv$h8f$1@fred.mathworks.com> <g4dp9g$l9p$1@fred.mathworks.com> <g4e775$pgn$1@fred.mathworks.com> <g4e97d$ldf$1@fred.mathworks.com>
Reply-To: "David " <daviddoria@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1215010442 3715 172.30.248.35 (2 Jul 2008 14:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Wed, 2 Jul 2008 14:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1408202
Xref: news.mathworks.com comp.soft-sys.matlab:477132



Excellent, this syntax is what I was looking for:
set(myAxes, 'ButtonDownFcn', @(h, eventdata)
GetClick(p.CurrentPoint))

It shouldn't be so confusing to do something as simple as this!

For anyone who reads this, just FYI it turns out that imshow
returns an "image" which does not actually have the
CurrentPoint property, so I had to use get(handles.axes1,
'CurrentPoint').

Thanks for all the help!