Actions passing mouse over objects...
15 ビュー (過去 30 日間)
古いコメントを表示
Hi everybody!
I'm looking for, if it's possible in Matlab gui, a code or a method to bring up something when mouse passes over an object...
It's possible to set it???
Thanks a lot!
=====
EDIT 11/12/2011 13.04 (European Time)
I explain in details what I want. I'd like to have a "popup window", if I can define it in this way. This window is defined as "text", and it has to appear when I pass with the mouse over a specific location in my interface: this "location" is a text too... Functions that Jan Simon proposed to me almost what I want, but I can not change them the way I need...
There are other ideas about that?
0 件のコメント
回答 (2 件)
Walter Roberson
2011 年 12 月 11 日
Items of type text do not have built in tooltip strings, and there is no mouse-over callback defined for items of type text.
If datacursormode is not able to do what you want, then you will have to go all the way up to the figure WindowButtonMotionFcn callback, have it decide whether you are over the target or not and display or hide your tooltips.
If you could switch your target objects from being of type text to being uicontrol('style','text') then this all would be easier, and you could use the helper user contribution http://www.mathworks.com/matlabcentral/fileexchange/26283-tooltip-gui-modeless-feedback
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!