필터 지우기
필터 지우기

set editField 'invisible' in app-designer problem

조회 수: 10 (최근 30일)
Yu Li
Yu Li 2019년 5월 29일
댓글: Yu Li 2019년 5월 29일
Hi:
I have a set of editField and I want to set them into 'invisible', the original display looks like below:
Capture.JPG
but after I set them into 'invisible', it becomes below:
Capture.JPG
some of the part are still there, so I want know, is there anyway to make them all disappear? or, is there any mistake with my operation?
Thanks!
Yu
  댓글 수: 2
Kevin Phung
Kevin Phung 2019년 5월 29일
it did exactly what you wanted-- the edit boxes are now invisible. Do you mean to set the texts invisible as well?
Yu Li
Yu Li 2019년 5월 29일
Yes, I want to set the texts invisible as well, but both the edit box and texts are belongs to the same app object.

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

채택된 답변

Guillaume
Guillaume 2019년 5월 29일
A uieditfield control is just the box where you enter your text or number. It looks like that's what you've set to invisible. Next to each of your edit field control you have labels. These are separe controls, you'll need to set their visibility properties to 'off' as well. Something like:
app.CrankEditField.Visible = 'off'; %make the edit field invisible
app.CrankEditFieldLabel.Visible = 'off'; %make the associated label invisible
%etc.
  댓글 수: 3
Guillaume
Guillaume 2019년 5월 29일
"There is no app named 'EditField'
You mean control? The app is the whole window.
I have no idea what your labels are called. Most likely for that CrankDelta edit control, the label is called CrankDeltaLabel.
You can easily find the name of the labels by looking at the properties of the App in code view. They'll be the control of type matlab.ui.control.Label. Note that by default the component browser doesn't list the labels associated to controls. However, you can right-click on the component tree in the component browser and tick the check mark next to Include component labels in Component Browser to have them listed.
component browser option.png
Yu Li
Yu Li 2019년 5월 29일
Thank you! I found it and I'm able to set it into 'invisible'.
Bests,
Yu

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by