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

Do you have zoom or pan turned on? Those interfere with clicking.

댓글을 달려면 로그인하십시오.

 채택된 답변

Steven Lord
Steven Lord 2015년 9월 21일

1 개 추천

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

Daniele Morello
Daniele Morello 2015년 9월 22일
편집: Daniele Morello 2015년 9월 22일
thank's a lot :) it works. but now, i have to click two times to insert a value? the first time to enable the edit text and the second time to allow to type a value. can i resolve in one step?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

질문:

2015년 9월 21일

편집:

2015년 9월 22일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by