Can you have a mouse hover feature in a Matlab GUI?
25 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Nathan
am 3 Aug. 2011
Bearbeitet: George Shoane
am 5 Jun. 2015
Hey all,
So i have a Matlab GUI right now that takes in a "Start time" and an "End Time", and creates an animation of data in between those times. However, I was hoping to add a mouse hover feature where if the mouse hovers over the "Start time" static text box, a little rectangle of texts pops up that explains what exactly "start time" refers to. Something like the Matlab GUI guide has, for example, where if you hover over the icons on the left, a little popup appears with the name associated with that icon. Any ideas? Thanks
Nathanf
0 Kommentare
Akzeptierte Antwort
Weitere Antworten (1)
George Shoane
am 5 Jun. 2015
Bearbeitet: George Shoane
am 5 Jun. 2015
There is a simple solution to hovering over a GUI icon. Select the Property Inspector for the icon by right-clicking the icon via guide for the GUI. Then go to TooltipString in the menu list, and put in the text on the right. That' all! Check it by running the GUI. This works for static textboxes as well.
For displaying multiple lines of text, use HTML formatting as follows: html Here is line 1.<br/>And this is line 2. [Ref: Yair Altman, http://www.mathworks.com/matlabcentral/newsreader/view_thread/46602]
0 Kommentare
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!