scroll programmatically within uitable
古いコメントを表示
I am starting to build an app suing the AppDesigner and need to deal with a fairly large uitable (>1000 rows).
In some cases it would be nice to scroll within this table to a certain row or cell programmatically.
https://ch.mathworks.com/help/matlab/ref/matlab.ui.container.tree.scroll.html shows that in 2020a there is now the function scroll, which allows scrolling e.g. within a list box to a certain item.
Is there a way to do the same within a uitable (created using the AppDesigner)? If not, if there a plan to add this in the near future?
採用された回答
その他の回答 (1 件)
Sean de Wolski
2020 年 8 月 10 日
0 投票
The scroll syntax in 20a only works in uifigures (the underlying figure used by app designer). Simply call it in a callback or function in the app.
4 件のコメント
Adam Danz
2020 年 8 月 10 日
@Sean de Wolski, I played around with the scroll function for a bit but I don't see how it can be used to scroll to a certain row within a UITable. The documentation shows how to scroll within a list box or tree node and I can see how this function could be extended to do the same with UITables, which would be great, but I couldn't get it to scroll within a uitable.
In cases where the scroll function is supported in app designer, users also have to turn "scrollable" on in the app's UIFigure.

Sean de Wolski
2020 年 8 月 10 日
Ahh. I was confusing regular figure with uifigure, not lack of support for uitables... Disregard (for now!)
Adam Danz
2020 年 8 月 10 日
Looking forward to the "yet" part. Lots of people have asked how to programmatically scroll to a certain row and column of a uitable.
Steven Brossi
2020 年 8 月 11 日
カテゴリ
ヘルプ センター および File 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!