Re: why does GUIDE ButtonDownFcn require mouse double-click?



"Kathleen " <quisquiliae2@xxxxxxxxxxx> wrote in message <f82hnb$hj8$1@xxxxxxxxxxxxxxxxxx>...
Hi! I'm designing a GUI, and have defined my ButtonDownFcn for my axes. Theoretically, this function is supposed to be called whenever a (single) mouse click occurs within the axes space. However, my GUI requires a mouse double-click to activate the function (with only a single click, a crosshairs appears, centered at the mouse location).

Is this problem occurring due to some programming error of mine, or is it just a bug in the Matlab software? Is there any way that I can activate my ButtonDownFcn with only a single mouse click?


A single click is enough. The cross-hairs are not standard behavior. The conclusion is that somewhere in your code there's another function that sets the button down callback to use crosshairs, and only then your second callback takes control, upon the second click.

Yair Altman
http://www.ymasoftware.com

.