Double right click detection in App Designer

Hello everyone.
I'm making an app in App Designer, and I want to do something when the user does a double RMB click on an UIAxes element. I implemented stuff for single left and right clicks already, using the app.UIFigure.SwlectionType to detect what the user does, and I know that this way I can detect double left clicks. I tried using timers and tic-toc to manually detect double right clicks but they'd work seemingly completely random, as in, sometimes they'd be detected and sometimes not, no matter the user's right click speed.
What can I do? Thanks in advance!

Antworten (1)

Vincenzo
Vincenzo am 26 Apr. 2025

0 Stimmen

Actually nevermind: I just found out that SelectionType 'open' detects both kinds of double clicks, then I just had to differentiate between double left and double right. Leaving this here in case anyone has the same problem!

Kategorien

Mehr zu Startup and Shutdown finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2024b

Gefragt:

am 25 Apr. 2025

Beantwortet:

am 26 Apr. 2025

Community Treasure Hunt

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

Start Hunting!

Translated by