Doesn't ButtonDownFcn work for left-click?
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Daniele Morello
am 21 Sep. 2015
Bearbeitet: Daniele Morello
am 22 Sep. 2015
hi everyone, i would to know if it's possible to have the same behavior for the ButtonDownFcn for the left-click instead of right-click. i have to set invisible an editText when i click on another editText. Now it works only with right click. i've simply used this line code:
set(handles.editGIRI_r,'Visible','Off');
1 Kommentar
Akzeptierte Antwort
Steven Lord
am 21 Sep. 2015
Look at the documentation for a uicontrol's ButtonDownFcn, Callback, and Enable properties. The ButtonDownFcn for a uicontrol will execute on left-click if the uicontrol is not enabled (off or inactive.) If the uicontrol is enabled, its Callback executes instead.
1 Kommentar
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!