Path: news.mathworks.com!not-for-mail
From: "Steven Lord" <slord@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: ButtonDownFcn Callback for Axes Objects
Date: Tue, 25 Nov 2008 11:55:57 -0500
Organization: The MathWorks, Inc.
Lines: 24
Message-ID: <gghamu$oe5$1@fred.mathworks.com>
References: <ggg9ng$c4m$1@fred.mathworks.com>
Reply-To: "Steven Lord" <slord@mathworks.com>
NNTP-Posting-Host: lords.dhcp.mathworks.com
X-Trace: fred.mathworks.com 1227632158 25029 144.212.105.187 (25 Nov 2008 16:55:58 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 25 Nov 2008 16:55:58 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5512
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
Xref: news.mathworks.com comp.soft-sys.matlab:503129



"Thiago " <thiago@mathworks.com> wrote in message 
news:ggg9ng$c4m$1@fred.mathworks.com...
> For some reason, my ButtonDownFcn callback for an axes object is not 
> responsive; no matter which mouse button I use. I'm running MATLAB 7 
> (R14). That feature should work the same way as it does with push buttons, 
> don't you think? Your assistance is highly appreciated.

Do you have something else (like an image) on your axes?  If so, change the 
HitTest property of the image.

http://www.mathworks.com/support/solutions/data/1-1B03X.html?solution=1-1B03X

Did you PLOT on your axes between setting the ButtonDownFcn and attempting 
to trigger it?  If so, that would clear your ButtonDownFcn unless you used 
HOLD ON to prevent it.

http://www.mathworks.com/support/solutions/data/1-3K8R2L.html?solution=1-3K8R2L

-- 
Steve Lord
slord@mathworks.com