フィルターのクリア

Is it possible to create a scrolling, programmatic GUI containing static text and editable text boxes?

1 回表示 (過去 30 日間)
I asked this question earlier, but failed to include all the details.
I’m looking to create a GUI containing a combination of 80 static/editable text boxes. It would look something like this;
Static text Editable Text (1)
Static text Editable Text
Static text Editable Text
Static text Editable Text
Static text Editable Text
Static text Editable Text . . . . . . . . . . . . .
Static text Editable Text (80)
Creating the text boxes is not a problem. But getting the GUI to scroll through all 80 of these combinations is. I’m looking to place a vertical scroll bar on the right side of the GUI and allow the user to scroll down to the applicable line where he/she can input specific values in the editable text box.
Can MATLAB do this? If so, does anyone have a reference as to how to approach this?
Thank you.
  7 件のコメント
Arthur
Arthur 2013 年 9 月 12 日
If you use a script, your cellEditCallback HAS to be in a separate (function) file. Otherwise you can't declare it.

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2013 年 9 月 11 日
Yes. Put all of the uicontrol into one uipanel. Put a scrollbar outside of the panel. Have the scrollbar callback change the Position of the uipanel. Make sure that Clipping is enabled on the uipanel.
Usually the trick works better if you use two uipanel, one acting as a "frame" in the figure, and the other moving within the first. Clipping on the outer uipanel ensures that only the parts of the second panel that are within the visible frame get shown.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEnvironment and Settings についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by