Edit field numeric appdesigner

2 次查看(过去 30 天)
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 中查找有关 Text Analytics Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by