Edit field numeric appdesigner

조회 수: 14 (최근 30일)
Bárbara Matos
Bárbara Matos 2022년 5월 23일
댓글: Bárbara Matos 2022년 5월 24일
Hello! Is there some way in appdesigner to have a variable after an edit field (numeric)?
For an example I see image 1. I want an edit field where the user knows that the value he choses is being multiplied with the variable X.
Is this possible? Thank you!

채택된 답변

Cris LaPierre
Cris LaPierre 2022년 5월 23일
I would use the Label component to add the '*X' to the right of the edit field.
  댓글 수: 1
Bárbara Matos
Bárbara Matos 2022년 5월 24일
Thank you very much! I thought I could only use one uilabel per NumericEditField, but it makes sense! :)

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

추가 답변 (1개)

Voss
Voss 2022년 5월 23일
Yes. You can have two uilabels associated with that NumericEditField, one uilabel with Text 'Distance :' to the left of the NumericEditField and one uilabel with Text '*X' to the right of the NumericEditField.
Of course, it will be up to your code to do the correct operation (multiplying the input by X).
  댓글 수: 1
Bárbara Matos
Bárbara Matos 2022년 5월 24일
Thank you very much! I thought I could only use one uilabel per NumericEditField, but it makes sense! :)

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

카테고리

Help CenterFile Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by