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

2 次查看(过去 30 天)
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 个评论
Michal Dobai
Michal Dobai 2017-11-6
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 2017-11-6
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile 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!

Translated by