listdlg: differentiate between Cancel and X
4 views (last 30 days)
Show older comments
Hello,
In listdlg, I would like to differentiate between pressing Cancel button and X.
I know both of them will result in an empty vector. But is there any work around to differentiate between these two buttons.
My plan is to have the following:
- Press OK: call Action 1
- Press Cancel: call Action 2
- Press X: call Action 3
Thank you in advance!
Hasson
6 Comments
Image Analyst
on 15 Aug 2020
Why different actions for Cancel vs. X? Is your user prompt going to explain to the user that different actions will be taken depending on which they click on? I don't think most users will expect that. I know of many uses who don't think there is, or will be, any difference between the two. Why do you want two different actions?
Answers (0)
See Also
Categories
Find more on Dialog Boxes in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!