moving scroll index in a ui figure

17 visualizaciones (últimos 30 días)
Life is Wonderful
Life is Wonderful el 5 de Dic. de 2019
Comentada: Life is Wonderful el 14 de Sept. de 2021
Using previos thread , I am raising new topic
Refer for more details:
Please see the attached figures "uit_figure.PNG" & "DropMenu_list.PNG"
  • How to Implement moving scroll index in a uit figure where cell is highlighted with a text color?
If index is 25 , then I want the select the cell highlighted . For next index say 26,27, 28 and so on . then each selected cell should be highlighted as moving index in the figure uit_figure.PNG
  • Cell selection is done from the DropDown Menu Variables as shown in the DropMenu_list.PNG
  1 comentario
Adam Danz
Adam Danz el 5 de Dic. de 2019
I think you're asking how to programmatically scroll the UItable to a certain row.
You'll have to use a java method. This answer may be helpful to you but I'm not sure if the same will work for UITables in app designer (which appears to be what you're using)

Iniciar sesión para comentar.

Respuesta aceptada

Adam Danz
Adam Danz el 6 de Dic. de 2019
Editada: Adam Danz el 10 de Mayo de 2021
Update: Matlab R2021a and later
Starting in Matlab R2021a, you can programmatically scroll to any row, column, or cell of a uitable using the scroll function (see Four New App Features in MATLAB R2021a).
Syntax examples:
Prior to Matlab R2021a
TL;DR: Don't waste your time, it's not currently possible in AppDesigner (r2019b).
Programmatically scrolling to a specific row and column of a UITable in App Designer is not currently possible (r2019b).
As of r2019b programmatically selecting a cell in a UITable is possible when the UITable is created by uitable() and is embedded in a figure created by figure() by using java methods (see this answer) but this does not work with AppDesigner UITables. This method soon will not work for regular UITables either since it requires a function that uses the JavaFrame property and javacomponent function which will no longer be supported by Matlab in future releases.
  3 comentarios
Life is Wonderful
Life is Wonderful el 7 de Dic. de 2019
Life is Wonderful
Life is Wonderful el 14 de Sept. de 2021
Hi Adam,
Can you please have a look into below link and help me
Thank you!!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by