Does the SelectionType of uifigure not have effect anymore?

조회 수: 1 (최근 30일)
Bereketab Gulai
Bereketab Gulai 2019년 11월 13일
답변: Rahul 2025년 4월 17일
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