From: Steven Lord on 8 Jul 2010 14:26 "Frédéric Bergeron" <frederic.bergeron(a)logiag.com> wrote in message news:i14mhc$juh$1(a)fred.mathworks.com... > "Bart " <none(a)aol.com> wrote in message > <i14kl8$dqg$1(a)fred.mathworks.com>... >> Ignore my last message, the ButtonDownFcn works if you click on the edge >> of the plot where the x and y tickmarks are. I am a little confused by >> that and thought they would work throughout the plot, not just on the >> outside edge. Is that they way they operate? >> >> Thanks, >> >> Bart > > Hey, > > I'm programming a GUI with surface and mesh plots, so I don't know if what > I think may apply to image plots, but the 'hittest' property for a lots of > my plot has been a problem for buttondownfcn. I have to desactivate this > function (i.e set(h,'hittest','off') ), for my buttondownfcn to works, > because this property makes (I think) that when you click on a plot with > 'hittest' set to on, it just select the plot and make nothing else, so it > ignores the buttondownfcn. That's correct. If you click on an image with its HitTest property set to 'on' you're not clicking on the axes underneath the image, you're clicking on the image and so the axes's ButtonDownFcn would not execute while the image's ButtonDownFcn would. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ To contact Technical Support use the Contact Us link on http://www.mathworks.com
First
|
Prev
|
Pages: 1 2 Prev: Some clarifications needed in simulink asynchronous machine model Next: Creating a mesh |