Does the SelectionType of uifigure not have effect anymore?

1 次查看(过去 30 天)
I am trying a double click function in the uitable of R2019b. The SelectionType property does not care and just gives what was assigned to it on the startupfcn.
Is there any alternative in to this case?
Update:
I have attached test.zip App Designer files to try to reproduce it. Yes, it does not work. If you could suggest an alternative to identifying selection type?

回答(1 个)

Rahul
Rahul 2025-4-17
The 'DoubleClickedFcn' callback was introduced in MATLAB version R2022b. Hence if you wish to use that particular callback, you can consider to MATLAb version R2022b or a more recent release.
Alternatively, the 'SelectionType' property of 'uifigure' provides information about the last mouse button press that occurred in the UI figure. Hence if the mouse is clicked once and then the 'CellSelection' callback gets triggered, it would first show the 'SelectionType' of the first registered click.
The following MathWorks documentations can be referred to know more:
Thanks.

类别

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