UITable cell edit not working as expected

8 Ansichten (letzte 30 Tage)
Michal
Michal am 13 Jan. 2021
Beantwortet: Rahul am 16 Apr. 2025
I have a question regarding UITable component in AppDesigner in the latest R2020b release. I have this table in GUI and I want the user to edit cells so I set the 'ColumnEditable' property to true. The table cells can be editied, which is great; however, the behavior is strange.
The user clicks any cell he wants to edit and then, when he starts typing, first of all, the cell value is selected and afterwards, the cell is edited. This means that when user wants to write for example "dog", he clicks a cell and writes "dog", only "og" is written because the press of 'd' selected the value in the cell.
In previous release (R2020a), I did not observe this strange behavior. Is this something intended or is this a bug? Can someone please help me or provide me some solution how to change this weird behavior?
Thank you very much
Michal

Antworten (1)

Rahul
Rahul am 16 Apr. 2025
I encountered this issue as well. The behaviour has been resolved from MATLAB version R2022a and onwards. Alternatively, another workaround involving replicating a second click using 'java.awt.Robot' can also be used.
Please refer to the following MATLAB Answer to resolve this:
Thanks.

Kategorien

Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by