ButtonDownFcn does not work
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Zoltán Csáti
el 6 de Feb. de 2014
Comentada: Zoltán Csáti
el 6 de Feb. de 2014
I am making a gui, but I can not make use of line 31:
set(S.canvas, 'ButtonDownFcn',{@selectedtile,S});
If I am within the newgame function it works as it should be, but in the normal way it does not. What did I make wrong? I attached the code.
Thank you
0 comentarios
Respuesta aceptada
Friedrich
el 6 de Feb. de 2014
Hi,
in line 120 you do
axis(S.canvas, 'off');
which results in the ButtonDownFcn has no effect. Try using this instead:
set(S.canvas,'Xtick',[],'Ytick',[])
5 comentarios
Friedrich
el 6 de Feb. de 2014
When I set a breakpoint in the selectedtile function and click into the generated field (after doing File -> New) I get into the selectedtile function. Do you really don't get into the selectedtile function? Can you also set a BreakPoint and see if you get in.
Más respuestas (0)
Ver también
Categorías
Más información sobre Whos en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!