GUI
1 次查看(过去 30 天)
显示 更早的评论
Hi,
Can you pls guide me,how to make button action i mean, whne the mouse button is click it has to perform action1,when mouse button relases it has to perform action2.
Thanks in advance for your help.
0 个评论
采纳的回答
Friedrich
2011-7-8
Hi,
I think you are looking for the WindowButtonDownFcn and WindowButtonUpFcn. You can find an example called window_motion_test.m in $MATLABROOT\help\techdoc\ref\examples.
2 个评论
Friedrich
2011-7-8
This shouldnt happen normally. When clicking on a button the callback from the button is raised and the WindowButtonDownFcn. maybe something goes wrong here?
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!