- Use the CellSelectionCallback: This callback can be used to detect when a cell is selected. However, it does not directly detect double-clicks.
- Use the WindowButtonDownFcn and WindowButtonUpFcn: These can be used to detect mouse button presses and releases. You can track the time between these events to determine a double-click.
- Track Clicks and Timing: Implement logic to track whether a double-click has occurred based on the timing of clicks.
How to detect a left double-click on a cell of a uitable?
6 ビュー (過去 30 日間)
古いコメントを表示
If I add a command
get(handles.figure1,'selectiontype')
under function figure1_WindowButtonDownFcn, only right single/double click on a cell of a uitable can be detected. I'm wondering how to detect a left double-click on a cell.
0 件のコメント
回答 (1 件)
BhaTTa
2024 年 9 月 5 日
hope it helps!
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Get Started with MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!