Is there any way to navigate through UITable (App Designer) cells with arrow keys?

6 visualizaciones (últimos 30 días)
I have a table in my GUI built in App Designer. Table is filled with some data (aprox. 10 cols and several hundred rows). User can change values inside cells and save table contents in .xsl file.
The problem is navigating through table cells. It seems to support only mouse clicks to select cells. Is there any way to select cell in next/previous row with only keyboard keys? I think there's no "KeyPress" callback on App Designer's UITable. I know App Designer has still a lot of limitations but this seems to be really basic functionality to me.
Also I noticed, that arrow keys are used to "scroll" through table if the content doesn't fit in table area.
Is there any way to do it in current version of MATLAB (R2017a)? Maybe some workaround or undocumented way?
  3 comentarios
Michal Dobai
Michal Dobai el 6 de Nov. de 2017
For App Designer's UIFigure? I thought it's not possible. At least not in official, documented way.
UI figures do not support properties for printing, saving, or custom mouse and keyboard interaction.
Here's error I'm getting when I try to assign callback function to KeyPressFcn:
app.UIFigure.KeyPressFcn = @updateResultsTable;
Functionality not supported with figures created with the uifigure function. For more information, see Graphics Support in App Designer.
I checked release notes , if it's not just newest R2017b functionality, but closest thing I could find was just ButtonDownFcn callback for graphics objects displayed in UI axes.
Could you please post here what you found? Maybe I'm doing something wrong.
Rik
Rik el 6 de Nov. de 2017
Sorry, my bad. I read too quickly (and didn't read the page itself): search result. It was about the normal figures, instead of UIFigures.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer 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