MATLAB Answers

visibility of an edit text / GUI

조회 수: 34(최근 30일)
anahita 28 Jun 2013
I have a push button and a edit text in my GUI and I want this edit box to be visible only if the push button is pressed. I want to know how should I do that.

  댓글 수: 0

로그인 to comment.

채택된 답변

Tom 28 Jun 2013
First of all, I think you should use a togglebutton, as with a pushbutton the edit box would go invisible as soon as you let go of the mouse button.
for the button callback:
if get(hObject,'Value')
Where editTag is the Tag of your edit button (The default is edit1)

  댓글 수: 1

anahita 28 Jun 2013
Thank you sooooooooo much

로그인 to comment.

More Answers (0)

이 질문에 답변하려면 로그인을(를) 수행하십시오.

Translated by